Direct link to the article An Approach to Lazy Loading Custom Elements

An Approach to Lazy Loading Custom Elements

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 element appears in the DOM, we wanna load the corresponding implementation if it’s not available yet. […]

Avatar of Frederik Dohr
Frederik Dohr on
Keep browsing in the archives