This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
I finished watching Tim Kadlec's Jamstack conf talk "Oh The Scripts We'll Load". Tim dives into the nitty-gritty details of script loading and how JavaScript affects performance. He covers the script element's async
and defer
attribute, goes into script loading strategies and browser loading priorities. I recommend watching it if you want to learn more.
But I'm not writing this quick post because of Tim's excellent content; I'm writing this post because he showed a tool that I haven't seen before.
slowfil.es is a service that you can use for performance testing. It provides publicly available JavaScript and CSS files to include in your sites. The files themselves aren't useful, but the catch is that you can control their performance characteristics via HTTP query parameters. You can define a delay, caching headers, and a response status code.
# a JavaScript file with a 2.5s delay
https://slowfil.es/file?type=js&delay=2500
Using slowfil.es, way you can embed a "slow" JavaScript or CSS file in your site and see how and if this file affects your overall performance.
Great talk, excellent service! Thanks, everybody!
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
Stefan Judis | Sciencx (2020-12-06T23:00:00+00:00) slowfil.es – a service for slow assets with high priority (#note). Retrieved from https://www.scien.cx/2020/12/06/slowfil-es-a-service-for-slow-assets-with-high-priority-note/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.