In times like this where we have to stay home we are rapidly moving our daily offline life to online. Networks are suffering of our highly increased usage and we experience this as users by longer loading times and even unreachable websites. Should websites we use go on a diet, to increase our user experience?
The average web page is about 2 megabytes, according to HTTP Archive, a site that tracks the performance of websites and the technologies they use. Today’s web pages are problematic for people on slow connections or with small bandwidth caps. There are many reasons today’s web is so bloated, including the ads and tracking scripts that saddle so many pages.
To build these interactive sites, many web developers turn to open source packages that handle common tasks.
Facebook’s popular open source React library for building user interfaces, for example, weighs in at 100 kilobytes. Web developer Shawn Wang says he cut the size of his personal website from 187 kilobytes to 9 kilobytes by switching from React to Svelte.
“Svelte is like a space elevator,” Wang says. The framework was tricky to create, but advocates say it makes it easier for developers to build efficient apps. Wang says he likes to use Svelte for web pages, but he still uses React for larger applications, including his professional work.