Font loading strategy #8522
Labels
cross-team
For visibility for both World Service teams (Engage & Media)
investigation
performance
Refinement Needed
This is ready for refinement. It shouldn't be worked on until it has been refined by Dev & Test.
technical-work
Technical debt, support work and building new technical tools and features
Milestone
Is your feature request related to a problem? Please describe.
Related to the findings mentioned in this issue https://github.com/bbc/simorgh-infrastructure/issues/1312
Our fonts are loaded synchronously (blocking) and are prioritised above JS bundles because CSS with font paths are inlined in the html near the top of the document before most other assets.
Describe the solution you'd like
We should find a way to async load our fonts so that other assets such as JS bundles are prioritised above the font requests.
The async font loading solution should also work with JS disabled.
This is an investigation/spike issue to find a solution that fits best in the Simorgh application and works best for our users.
A separate issue to outline the approach should be written after the completion of this spike.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Testing notes
[Tester to complete]
Dev insight: Will Cypress tests be required or are unit tests sufficient? Will there be any potential regression? etc
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: