---
title: "The truth about CSS Selector performance"
publication: "Frontend Focus"
issue: 576
published_at: "2023-01-18"
canonical_url: "https://frontendfoc.us/issues/576"
---

Plus a handy SVG reference, why you should avoid document.write(), and just how 'Fugu' is your browser? |       

Together with [![Dynaboard logo\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,e_trim,w_500,h_100/e_make_transparent/co_white,e_outline:7/xh5y6qe2tcrjx1vxyfer.png)](https://dynaboard.com/?utm_source=cooperpress&utm_medium=email&utm_campaign=procode-q12023)         

#​576 — January 18, 2023 | [Read on the web](https://frontendfoc.us/issues/576)       

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1674046529/dt7kmevcd1lebsekssxq.png)](https://blogs.windows.com/msedgedev/2023/01/17/the-truth-about-css-selector-performance/)  

[The Truth About CSS Selector Performance](https://blogs.windows.com/msedgedev/2023/01/17/the-truth-about-css-selector-performance/) — Did you know that certain CSS selectors are faster than others? This article explains, outlining the ones that are important to keep an eye on for performance, and shares how a new tool in Microsoft Edge can help you measure the impact. 

Patrick Brosset   

[Top Front-End Tools of 2022](https://www.smashingmagazine.com/2023/01/top-frontend-tools-2022/) — Louis takes a look at the most useful frontend tools for CSS and JavaScript developers that were most popular last year (and will hopefully help speed up your development workflows). 

Louis Lazaris   [![\](https://copm.s3.amazonaws.com/9834b143.png)](https://dynaboard.com/?utm_source=cooperpress&utm_medium=email&utm_campaign=procode-q12023) 

[Dynaboard: The Pro-Code Web App IDE Made for Developers](https://dynaboard.com/?utm_source=cooperpress&utm_medium=email&utm_campaign=procode-q12023) — Build high performance public and private web apps in a collaborative — code forward — WYSIWYG environment. 

Dynaboard sponsor   

[Optimizing the Image Element LCP](https://www.smashingmagazine.com/2023/01/optimizing-image-element-lcp/) — Largest Contentful Paint (or LCP) is both a major web performance metric, and ranking factor. Here, Eloïse provides an overview of the best practices for the integration and optimization of an LCP image. 

Eloïse Martin   

[Why Not `document.write()`?](https://csswizardry.com/2023/01/why-not-document-write/) — We’re often told not to use `document.write()`, but… why?! Harry digs in, noting that it “_guarantees both a blocking fetch and a blocking execution, which holds up the parser for far longer than necessary_”. 

Harry Roberts    

**⚡️ IN BRIEF** 

- Dave Rupert will be joining Kevin Powell for [▶️ a YouTube livestream later today diving into Web Components](https://www.youtube.com/watch?v=Sq5oiHjwFxI).
- The CSS property `initial-letter` [will be landing in Chrome 110](https://twitter.com/seaotta/status/1615073550653685760) - more on this [in Stephanie's blog post](https://blog.stephaniestimac.com/posts/2023/1/css-initial-letter/).
- All of the modules in [Carie Fisher's excellent 'Learn Accessbility' course](https://web.dev/learn-accessibility-available/) are now avaialble.
- Last week we shared the [most hearted CodePen demos of 2022](https://codepen.io/2022/popular/pens), now Steve Gardner has collected his own ['Hall of Fame' favorites/bests](https://codepen.io/collection/DLjrdd).
- 📅 [TheJam.dev is an upcoming, free two-day virtual conference](https://thejam.dev/) taking place next week — it focuses on how to build modern web apps using Jamstack, serverless and more.
- 📅 Early-bird tickets for CSS Day taking place in Amsterdam, Netherlands, this June [are now available](https://cssday.nl/2023).    

📙 **Tutorials, Articles & Opinion** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1674046329/zyoqwilrqrpa1eqfjgvf.png)](https://developer.chrome.com/blog/how-fugu-is-my-browser-and-how-fugu-is-the-web/)  

[Discovering the _Capable Web_](https://developer.chrome.com/blog/how-fugu-is-my-browser-and-how-fugu-is-the-web/) — What advanced web capabilities does your browser support? [Just how _Fugu_ is your browser](https://howfuguismybrowser.dev/)? Thomas explains Project Fugu and a set of new APIs — ”_a cross company effort to close gaps in the web’s capabilities, enabling new classes of applications to run on the web_”. 

Thomas Steiner (Chrome Developers)   

[Priority Hints and Optimizing LCP](https://imkev.dev/fetchpriority-opportunity) — Priority Hints are used to indicate to the browser the relative priority of a resource. Here, web performance expert Kevin takes a deep dive into how you can go about improving your Largest Contentful Paint by using `fetchpriority`. 

Kevin Farrugia   

[Free Website Speed Test: Does Your Site Meet Google's Core Web Vitals?](https://www.debugbear.com/test/website-speed?utm_source=newsletter&utm_medium=sponsored&utm_campaign=frontend-focus-1) — Get an in-depth technical analysis of your site and learn how to make it fast. Rank higher in Google & deliver great UX. 

DebugBear sponsor   

[Using `:is()` in Complex Selectors Selects More Than You Might Initially Think](https://www.bram.us/2023/01/17/using-is-in-complex-selectors-selects-more-than-you-might-initially-think/) — Because selector matching happens from right to left, you might end up with more matches than you expected. 

Bramus Van Damme   

[A History of Web Browser Engines from 1990 to Today](https://eylenburg.github.io/browser_engines.htm) — An interesting overview and timeline of browser engine marketshare over the past ~33 years. _This was last updated in October of last year, but we haven’t shared it here in the newsletter before_. 

Alphonse Eylenburg   

▶[Working with WebXR and Three.js](https://www.youtube.com/playlist?list=PLpM_sf_d5YTPL1iDMJNDHuEMkT0eTYkyL#webxr) — A short series of YouTube videos on the basics of creating VR and augmented reality experiences using Web APIs. 

Mohit Kumar Toshniwal   

[Not Everyone's Currently Building for The Web, But Probably More People Should](https://blog.tomayac.com/2023/01/16/why-not-everyones-building-for-the-web-yet-but-why-potentially-they-should/) 
Thomas Steiner   

[Building a Color Palette with CSS: Three Methods](https://blog.logrocket.com/building-color-palette-css/) 
Rahul Chhodde   

[Six Common SVG Fails (And How to Fix Them)](https://css-tricks.com/6-common-svg-fails-and-how-to-fix-them/) 
Mariana Beldi  

🔧 **Code, Tools & Resources** 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/v1674043129/tywowi7ottqoiosa0ghv.png)](https://fffuel.co/sssvg/)  

[SSSVG: An Interactive SVG Reference](https://fffuel.co/sssvg/) — A handy visual and interactive SVG reference. Quickly look up how to define SVG shapes, transforms, masks, patterns, gradients, text and more. 

Sébastien Noël   

[Lazy Brush 2.0: A Library for Smooth Pointer Drawing](https://lazybrush.dulnan.net/) — Allow your users to draw smooth curves and straight lines with your mouse, finger or any pointing device. This long standing library has [just](https://github.com/dulnan/lazy-brush/releases/tag/v2.0.0) migrated to TypeScript and gained a new ‘friction’ option to customize the feel. [GitHub repo.](https://github.com/dulnan/lazy-brush) 

Jan Hug   

[Don’t Let Your Issue Tracker Be a Four-Letter Word. Use Shortcut](https://shortcut.com/?utm_source=cooperFRONTEND&utm_medium=spon_nl&utm_campaign=prospecting&utm_content=fourletter) 

Shortcut (formerly Clubhouse.io) sponsor   

[contrast-ratio: A Tool to Calculate the Contrast Ratio Between any Two Valid CSS Colors](https://github.com/LeaVerou/) 

Lea Verou   

[Ripple UI: A Collection of Tailwind Components and Utilities](https://www.ripple-ui.com/) — A nice collection of 20+ customizable components with support for dark mode out-of-the-box. Includes good documentation and examples for each component. 

Mauricio Siu   

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/irvkzsw2qvtfscudqoja.jpg)](https://venngage.com/tools/accessible-color-palette-generator)  

[Accessible Color Palette Generator: Beautiful WCAG-Compliant Colors](https://venngage.com/tools/accessible-color-palette-generator) — Includes a gallery where each pair of colors follow WCAG 2.1 AA based on a contrast ratio of 4.5:1, or you can generate a pair from a single color of your own. 

Venngage    

🧑‍💻 JOBS  

[Software Engineer](https://www.stimulus.com/jobs/1539721e-7c7d-4f45-a5b0-17e5c02d7bd0) — [Stimulus](https://www.stimulus.com/jobs) is a social platform started by Sticker Mule to show what's possible if your mission is to increase human happiness. Join our engineering team. 
Stimulus   

[Find Frontend Engineering Jobs with Hired](https://hired.com/join/?utm_source=newsletter&utm_medium=sponsor&utm_campaign=%28b2c%29%28l-all%29%28r-all%29%28cooper-frontendfocus%29&utm_content=find-your-next-job) — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It's free for job-seekers. 
Hired      

📬 

**Got a new email address?** You can [change your email here](https://frontendfoc.us/edit_subscription/*|UID|*). 

--- 

**Bored of us?** Click [here to stop getting this newsletter](https://frontendfoc.us/leave/*|UID|*). 

--- 

**Got a link for us?** Reply and tell us. We can't include everything but we'll take a look. 

--- 

Published by Cooper Press Ltd.
Curated by [Chris Brandrick](https://mastodon.social/@brandrick) & [Peter Cooper](https://twitter.com/cooperx86).
Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

[Stop getting this newsletter](https://frontendfoc.us/leave/*|UID|*)  

[Ipx.](https://frontendfoc.us/open/576/*|UID|*?ipx=t)
