SZ.de articles now partly make use of native JavaScript modules! This is our first attempt experimenting with differential serving, meaning compiling and serving two separate JavaScript bundles:

One for old browsers, packed with language- and platform-specific polyfills, the other for modern browsers that can execute code with almost no polyfills whatsoever (platform polyfills are being included via dynamic imports, if necessary).

Show thread
Follow

From now on most of our visitors have to download less code (gzipped ~ 21 KB lighter page weight) and have to wait less time until the page is interactive (~ 230 ms fewer JS long tasks).

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!