You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vikiival will comment on the most frontend-heavy features
Insane amount of fetches
I am not able to find the original issues but I have tried to load kodadot.xyz on uncached windows 10 PC (24 GB Ram, 8 core) with gigabit internet and this is what happened:
Single page load toook 6 min and 30 sec to finish.
That took 800 MB of data!
and more than 3000! Reqests
Therefore would be optimal to find the source of this data overfetching :) as:
more request == more compute == higher load -> slow app
SW will prefetch (non-blocking request) other assets in the background and put them in the cache, so the finish looks like it took longer to complete. Here is the page without cache and bypasses the service workers.
But we can still improve the number of requests.
change the 301 status to render it directly. Currently, if the content is an image, it will redirect from image-workers to cf-images. It can reduce the requests by about 50 on that page
Most of the requests are coming from the client's JS. Reducing the number of JS requests on the client can significantly improve the page load. But it's not an easy one. We need to revive this PR first: feat: enable ssr on /privacy-policy #9155. The thing is, the PR is not related to EVM. Should I revive that PR again?
Insane amount of fetches
I am not able to find the original issues but I have tried to load kodadot.xyz on uncached windows 10 PC (24 GB Ram, 8 core) with gigabit internet and this is what happened:
Single page load toook 6 min and 30 sec to finish.
That took 800 MB of data!
and more than 3000! Reqests
Therefore would be optimal to find the source of this data overfetching :) as:
more request == more compute == higher load -> slow app
Insane amount of requests / computation
is fetching a big chunk of data to process therefore if user clicks there the app will freeze
Therefore data optimization -> a.k.a do graphql resolvers is a way to go.
Originally posted by @vikiival in #10370 (comment)
The text was updated successfully, but these errors were encountered: