lazyBlock : Conditionally load content in Responsive designs with JavaScript

lazyBlock : Conditionally load content in Responsive designs with JavaScript

lazyBlock is a proof-of-concept to show how content can be conditionally loaded in responsive designs without relying on AJAX to fetch that content. Content is included in the original mark-up but is placed within <script> tags with the type text/html. Based on user action or screen width, the content can then be moved from the <script> tag and then injected into the DOM by lazyBlock.

Tags:

Leave a Reply