plugins - Lazy Load sometimes don't work

admin2025-01-07  6

recently I implented lazy load script into my wordpress blog through query posts. Well it is working, but sometimes javascript will not just work.

Actually I have these images in sidebar aka images of products on the right

Funny is when it will not load lazy load script it will also not load another important scripts on the page, do you know what is the problem ?

recently I implented lazy load script into my wordpress blog through query posts. Well it is working, but sometimes javascript will not just work.

Actually I have these images in sidebar aka images of products on the right http://affgadgets.com/rankpay

Funny is when it will not load lazy load script it will also not load another important scripts on the page, do you know what is the problem ?

Share Improve this question asked Nov 17, 2014 at 20:26 ChymmiChymmi 1558 bronze badges 7
  • How are you loading Lazy Load? wp_enqueue_scripts? A plugin? I'm not seeing it loaded on that page at all. – BODA82 Commented Nov 17, 2014 at 20:29
  • I have it custom js file – Chymmi Commented Nov 17, 2014 at 20:31
  • using this pastebin.com/xst2zczE – Chymmi Commented Nov 17, 2014 at 20:32
  • Console is showing "Uncaught ReferenceError: $ is not defined" on $("img.lazy").lazyload(); in your noindex.js file. You've got some other errors too that you'll want to square away. – BODA82 Commented Nov 17, 2014 at 20:34
  • 2 you've got a jQuery script in your head tag that occurs before jQuery is included in the page. – Milo Commented Nov 17, 2014 at 22:44
 |  Show 2 more comments

1 Answer 1

Reset to default 0

There are a few things that can cause the lazy load script not to load. Check these few things:

  • Make sure that the lazy load script is loaded in the header of your website. It is the most common place to load lazy load scripts because it ensures that script is loaded before anything else.

  • Check the loading order of your scripts. If you have other scripts
    that are loading before the lazy load script,that may prevent it from loading. So please try changing the loading order and see if that fixes the problem.

  • Check your website's hosting configuration. If your website is hosted on a shared hosting plan, it's possible that your hosting provider is blocking the lazy load script.

Hope this helps!

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736253758a149.html

最新回复(0)