We’re fans of Custom Elements around here. Their design makes them particularly amenable to lazy loading, which can be a boon for performance.
Inspired by a colleague’s experiments, I recently set about writing a simple auto-loader: Whenever a custom …
An Approach to Lazy Loading Custom Elements originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
https://css-tricks.com/an-approach-to-lazy-loading-custom-elements/
Accedi per aggiungere un commento
Altri post in questo gruppo
This is the 3rd post in a small series we are doing on form accessibility. If you missed the 2nd post, check out Managing Us
Hey all you wonderful developers out there! In this post we are going to explore the use of :has()
in your next web project. :has()
is relatively newish but has gained pop
Hey all you wonderful developers out there! In this post, I am going to take you through creating a simple contact form using semantic HTML and an awesome CSS pseudo class known as :focus-wit
I spend a lot of time in DevTools, and I’m sure you do too. Sometimes I even bounce between them, especially when I’m debugging cross-browser issues. DevTools is a lot like browsers themselves — no
Doing a quick search here on CSS-Tricks shows just how many different ways there are to approach calendars. Some show how CSS Grid