Reduce the amount of data/props we send to page components #7153
Labels
cross-team
For visibility for both World Service teams (Engage & Media)
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.
If you look at view-source:https://www.bbc.com/japanese and look at the
window.SIMORGH_DATA
json you will see this resembles a lot of the data fetched from Ares which is roughly 65kb in total for this page. This is for the React SPA hydration on the client which is the data created ingetInitialData
in each route.There is potential for page weight savings by plucking out only the data we need before sending to the page component.
Describe the solution you'd like
We should not over-provide our page components with data.
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
Similar issues:
#4476
#3962
#3003
The text was updated successfully, but these errors were encountered: