Lazy Load Breaking inline javascript




Wordpress LScache Plugin: Lazy Load Breaking inline javascript

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, When I turn on lazy loading, the javascript stops working on this page: [ redundant link removed ] Ive excluded all images from the lazy loader. And I tried excluding the page in tuning under URI Excludes. The JS is a simple random image script: https://pastebin.com/yxkDPd7g Thanks for your time. This topic was modified 3 years, 5 months ago by Jan Dembowski. This topic was modified 3 years, 5 months ago by jessicamullen. The page I need help with: https://www.schooloflifedesign.com/jm-oracle-deck/ @jessicamullen Posting code like that doesnt work here. Can you please use a service like pastebin.com and share a link to that paste instead? Sorry about that, heres the code: https://pastebin.com/yxkDPd7g Hi @jessicamullen, we found theres a string on your js file data-no-defer=1 , may I know is it originally there? If not can you share this part of code to us before turning on Lazy Load? Hi Stanley, Sorry, that bit of code shouldnt have been in there. This is the actual updated code: https://pastebin.com/w74SnEAJ Thanks! Hi @jessicamullen, if you remove this string on your JS file will it work? Hi, No, the code still does not work (Here is the code I am currently using: https://pastebin.com/SfWnrPXk ) Thanks! Hi @jessicamullen, can you send us the crashed page link again? The link you mentioned in the first post doesnt show the js error. You also can send us by joining our Slack channel Hi again, Thanks so much for the help. I found out I forgot to exclude two of the images from the Lazy Load Image Excludes and that was causing the script not to work. So sorry for my oversight! Thanks for leading me to the answer! Hi, Everything works fine now ? Best regards, Yes, so sorry for wasting your time, my mistake. Not a problem at all! Thanks for letting us know its fixed. Have a great weekend



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference