Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dbhynds

    (@dbhynds)

    The plugin loads a 1x1px transparent gif as the src, then lazy-loads the real image when it comes into view. Are there any javascript errors on your page when it loads? It sounds like something is either preventing the Lazy Load XT js file from loading or running.

    Thread Starter jordicasanueva

    (@jordicasanueva)

    Thank you dbhynds, for your reply. Unfortunately it doesn’t show any type of Javascript error in the console.
    It only shows errors when I activate the “Enable script-based tagging -and then the images start to show, but as a consequence of the plugin not working-.

    The errors were the following:

    Uncaught ReferenceError: L is not defined
    <script>L();</script>

    I have uploaded my site now, here you can see it.

    I am not sure what I am missing in order to make it work, but additionally I have activated all the options from the plugin in different combinations, as well as changing the Jquery scripts positions and nothing has changed.

    Thank you very much for your help.

    Talk to you soon.

    Plugin Author dbhynds

    (@dbhynds)

    Hi,

    I don’t see the Lazy Load XT javascript files being loaded anywhere. Are your theme or plugins messing with wp_enqueue_scripts or wp_print_scripts. I don’t know why those js files aren’t being loaded, but that’s definitely your problem!

    Thread Starter jordicasanueva

    (@jordicasanueva)

    Dear dbhynds,
    thank you very much for your feedback! finally what I did was to stop calling the scripts through wp_enqueue_scripts or others and place the call of the javascripts in the footer.

    When I did this, it all started to work and now the images are lazy loading. If I have another question, I will write.

    If you have any aditional advice on this matter I will be very grateful.

    Thank you very much,

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not working in my theme’ is closed to new replies.