Skip to content

Conversation

@vyagh
Copy link
Contributor

@vyagh vyagh commented Jan 29, 2026

Title: fix: prevent double network request for localization.ini

Description:
localization.ini was being fetched twice on startup: once by the browser's <link rel="prefetch"> and again by webL10n.js via XHR.

This PR changes the link relation to rel="localization". This prevents the browser from aggressively prefetching it (saving one network request) while still allowing webL10n.js to discover the resource via the type="application/l10n" attribute.

Validation:

  • Verified in Chrome DevTools Network tab: localization.ini is now requested exactly once.
  • checked if language switching still works as expected.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant