Lazyloading
Read OriginalThis technical blog post explains a method for implementing lazyloading that respects progressive enhancement. It addresses the issue of resources not loading when JavaScript fails (e.g., if it's disabled or the engine doesn't start). The author's solution uses <noscript> tags with a 'lazyload' class, which are parsed only if JavaScript is off. A script then injects the contents of these tags into the DOM after the page loads if JavaScript is enabled.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser