r/webdev 🛠 Dev 👁 0

Waiting unitl all fonts and CSS have been loaded (and applied): best practice

When measuring elements in JS, I want to make sure that all CSS has been loaded and applied, and also all fonts have been loaded, so that no further layout shifts are expected (probably from images, but I can ignore that

📄

This source provides headlines only. Use the button below to read the complete article on the original site.

📰 Read the original article on r/webdev

Originally published by r/webdev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.