Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;(function($){
- "use strict";
- $(document).ready( function() {
- $( document.body ).on( 'post-load', function () {
- var $elements = jpibfi.addImages( 'div.infinite-wrap img'); //adds attributes to new images that are caught by the given selector
- setTimeout( function(){
- jpibfi.prepareImages( $elements ); //checks image size and prepares images when using static, 3 seconds timeout to make sure images are loaded
- }, 3000 );
- });
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement