PageSourceSearch

https://www.osa.org.au/wp-content/plugins/easy-facebook-likebox//i…/assets/js/esf-insta-public.js?ver=1

js osa.org.au collected 2026-10-03 17:55:40 UTC 1,989 bytes, 69 lines download raw bytes

1jQuery(function( $ ) {
2  // Lazy load inline images
3  $('img.esf-lazyload').each(function() {
4    $(this).attr('imgsrc', $(this).data('imgsrc'));
5    $(this).removeClass('esf-lazyload');
6  });
7
8  // Lazy load background images
9  var lazyloadBackgrounds = $('.esf-lazyload');
10  lazyloadBackgrounds.each(function() {
11    var dataSrc = $(this).data('imgsrc');
12    $(this).css('background-image', 'url(' + dataSrc + ')');
13    $(this).removeClass('esf-lazyload');
14  });
15
16  // Lazy load new elements added to the page
17  var observer = new MutationObserver(function(mutations) {
18    mutations.forEach(function(mutation) {
19      var newElements = $(mutation.addedNodes).find('.esf-lazyload');
20      newElements.each(function() {
21        var dataSrc = $(this).data('imgsrc');
22        $(this).css('background-image', 'url(' + dataSrc + ')');
23        $(this).removeClass('esf-lazyload');
24      });
25    });
26  });
27  var config = { childList: true, subtree: true };
28  observer.observe(document.body, config);
29});
30
31
32
33/**
34 * Init Grid layout
35 */
36function esf_insta_init_grid(){
37  jQuery('.esf_insta_load_more_btns_wrap').hide();
38  jQuery('.esf-insta-grid-wrapper .esf_insta_feed_fancy_popup').imagesLoaded(function() {
39        jQuery('.esf_insta_feeds_holder .esf-insta-load-opacity').fadeIn('slow');
40        jQuery('.esf_insta_load_more_btns_wrap').slideDown();
41        jQuery('.esf_insta_feeds_holder .esf-insta-load-opacity').removeClass('esf-insta-load-opacity');
42  });
43}
44
45
46
47
48jQuery(document).ready(function($) {
49  if (jQuery('.esf_insta_feeds_grid').length) {
50    esf_insta_init_grid();
51  }
52
53  
54
55});
56
57function esf_insta_init_layouts(){
58  esf_insta_init_grid();
59  
60}
61
62jQuery( window ).on( 'elementor/frontend/init', function() {
63  elementorFrontend.hooks.addAction( 'frontend/element_ready/shortcode.default', function(){
64    esf_insta_init_layouts();
65  });
66  elementorFrontend.hooks.addAction( 'frontend/element_ready/esf_instagram_feed.default', function(){
67    esf_insta_init_layouts();
68  });
69} );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.