3 ms·
That's not really fair: that's because I included a lot of images in the blog post in carousel. I admit it's not great and I didn't have time to optimize deeply
by slorber 4y ago
That's not really fair: that's because I included a lot of images in the blog post in carousel. I admit it's not great and I didn't have time to optimize deeply these custom image carousels for the launch to load hidden slides more lazily.
It's not the case for all other docs pages though, and we bet on progressive enhancement, so most of those things should also work if you disable JS and load less things.
Also we have link prefetching so that navigating to links appearing viewport will be immediate, but it will also load some data when links enter viewport. In our experience, these techniques to load resources a bit more eagerly produces a better UX. Would you reject a PWA, just because it loads more data upfront? No because after that you can eventually use the app offline.
Go to a regular doc page (not overcrowded with images) and disable JS: you'll see much less traffic, and the site remains usable. For example go to: https://docusaurus.io/docs/cli https://docusaurus.io/docs/cli
- michaelmcdonald 4y agoFor the lazy: the above referenced page by @slorber only had 1.3MB of resources to load (with JS enabled).
- slorber 4y agoThanks :) that's more fair, but I admit it's still too much, and we are definitively looking forward to improve the amount of JS needed in the future! Some new features in React 18 (and upcoming releases) like Server Components are going to have a great impact on Docusaurus