Spade shape with cobalt blue background

Performance Newsletter

Archive
Calibre Monitoring
Free Speed Tools
Log in
Subscribe
18 July 2023

⚡ 131: Breaking up with SVG-in-JS

͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏
 
Performance Newsletter
Issue 131
 

Editor’s note

 
The JavaScript bundle is trying hard to become a tool for many jobs. Have some CSS or SVG? You can throw it in. But just because we can, it doesn’t mean we should. Just as the first article in today’s issue illustrates, there are multiple drawbacks of adding resources to the bundle which should be served separately.

To build for the web, it’s essential we know and understand how to apply its fundamentals. How to write semantic markup in different languages, and how to serve and compress specific assets. The more stable our scaffolding is, the better foundations we have for what we build.
 
Karolina
 
 
 
 

What’s Performance newsletter?

 

Performance Newsletter is a fortnightly mailing by Calibre, featuring web performance tools, talks and resources.

Don’t worry—we don’t spam. If you’d like to leave, unsubscribe at any time. Suggest content here.

 
 
 

Articles

 
 
A diagram helping to choose an SVG implementation strategy
 

Breaking Up with SVG-in-JS in 2023

 
Jacob 'Kurt' Groß
The presence of SVGs in JavaScript bundles comes with a hefty performance and accessibility costs. Here are several strategies on how to get the SVGs out of the bundle back to HTML, where it belongs.
 
Chrome User Experience Report chart showing statistics for Dom Content Loaded with 46% poor DCL readings
 

In Defence of DOM­Content­Loaded

 
Harry Roberts
Many deem DOMContentLoaded as an obsolete metric. Is there any usefulness to it still, and if yes, why would we track it?
 

Fixing INP with a viewport tag

 
Stoyan Stefanov
Many of you might have gotten an alert about high Interaction to Next Paint in the last few days. Here’s what you could do about it.
 
 
 

Case Studies

 
 
Main thread comparison
 

A case study on scroll-driven animations performance

 
Yuriko Hirota

Scroll-driven animations can enhance functionality or visuals, but only if they’re performant. Learn about a new set of APIs that help create even better animations with both CSS and JavaScript.
 

 
 
 

Tools

 
 

Image performance enhancements in WordPress 6.3

 
Felix Arntz

WordPress 6.3 comes with several changes to improve Largest Contentful Paint times. They include adding fetchpriority=high to elements that are most likely the LCP element and improving automatic handling of lazy loading.

 
 
 

Courses, Talks & Podcasts

 
 
Side-by-side video call between Tanner and Karolina
 

Catching up with web performance: Karolina Szczur

 
Karolina Szczur& Tanner Hodges
In this episode, I’m interviewed by Tanner about my journey of building web performance tooling, the most common misconceptions and why we shouldn’t gate keep web performance from anyone. Tune in.
 
 
Calibre
 
This email is brought to you by the team at Calibre. We automate web performance testing, reporting and alerting, so you don’t have to.
 
 

Performance Newsletter is sent from the traditional lands of the Wurundjeri people of the Kulin nation. We acknowledge that sovereignty was never ceded and pay respects to the Elders past and present.

Send your suggestions, links and feedback to hi@perf.email.

View or share this email →
Quickly unsubscribe →
Browse older issues →

Sent by
Calibre Analytics

V119 / 425 Smith Street
Ngár-go
Fitzroy VIC 3065
Australia

 
Don't miss what's next. Subscribe to Performance Newsletter:
← Newer ⚡ 132: How bfcache improves conversion Older → ⚡ 130: Why frontend must build better
perf.email
Bluesky
LinkedIn