Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

LazyLoad for images, Videos and Iframes JavaScript and JQuery

<script src="lazysizes.min.js" async=""></script>
<!-- Image LazyLoad -->
<img data-src="image.jpg" class="lazyload" />
  
  <!-- Image LazyLoad -->
  <img
    data-sizes="auto"
    data-src="image2.jpg"
    data-srcset="image1.jpg 300w,
    image2.jpg 600w,
    image3.jpg 900w" class="lazyload" />

<!-- Iframe LazyLoad -->
<iframe frameborder="0"
	class="lazyload"
    allowfullscreen=""
    data-src="//www.youtube.com/embed/ZfV-aYdU4uE">
</iframe>
Comment

PREVIOUS NEXT
Code Example
Javascript :: Get Current Date And Time In Node.js 
Javascript :: take only int part of number js 
Javascript :: jest assert if empty array 
Javascript :: allow only integer or float in text fields jQuery 
Javascript :: loopback find or create 
Javascript :: html print div 
Javascript :: how to insert image by javascript 
Javascript :: javascript console input 
Javascript :: js queryselector radio checked 
Javascript :: change display style onclick 
Javascript :: change placeholder javascript 
Javascript :: jquery bind function to multiple events 
Javascript :: install nodejs ubuntu 19.04 
Javascript :: how to set content length of an mp3 stream in nodejs 
Javascript :: adonis join with multi condictions 
Javascript :: react native ios pressable inside motiview 
Javascript :: jquery set multiple css properties 
Javascript :: jsx emmet vscode 
Javascript :: how to use componentdidmount in functional component 
Javascript :: javascript group by sum array reduce 
Javascript :: javascript get bounding rect 
Javascript :: reapeat until in js 
Javascript :: webkit-media-controls-timeline apply by jquery 
Javascript :: delete from array in angular 
Javascript :: within range js 
Javascript :: expo android package name 
Javascript :: gradle json simple dependency 
Javascript :: get how much i scroll in js 
Javascript :: animationframe javascript 
Javascript :: object for loop javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =