Support » Plugin: Lazy Loader » Make it work with AJAX requests

  • Resolved zitrusblau

    (@zitrusblau)



    Hey,

    nice to see lazysizes.js integrated as a plugin.

    I realized that content that gets added to DOM via AJAX calls won’t be parsed by your plugin, though (i.e. when adding content via masonry/isotope or similar scripts).

    this is due to the fact that is_admin() returns true for ajax, too.

    i added a modified version of your main plugin file to take this into account. would be nice if you integrated this mod in your next release, thanks!

    https://gist.github.com/zitrusblau/58124d4b2c56d06b070573a99f33b9ed

Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Make it work with AJAX requests’ is closed to new replies.