Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter sangkavr

    (@sangkavr)

    Maybe it was a caching problem, now I see the fading etc.
    But I’ve noticed that randomly it doesn’t work with some images and I don’t know why. And most important thing I have an ajax paginated archive, everything is ok at the first load of page but if you change period or change page you don’t see many images.
    You could see it here.

    Thread Starter sangkavr

    (@sangkavr)

    I just wanted to make you know that I activated all the options in the setting view except “Lazy load gravatars”, “Enable script-based tagging” that doesn’t make see able to load data from a template page (the way I created that archive), “Make sure lazy loaded elements appear in the print view.” that doesn’t make me see images in the archive.

    Plugin Author dbhynds

    (@dbhynds)

    Thanks for uncovering these bugs. I’ll look into them. The AJAX thing definitely needs to be fixed, so I’ll explore that. Any luck with the script-based tagging? Was it a caching problem?

    Thread Starter sangkavr

    (@sangkavr)

    If I activate the script-based tagging my archive doesn’t work.
    I created it with a script that gets data from a query in a template page, so with that option it redirect page I don’t know where.

    Plugin Author dbhynds

    (@dbhynds)

    sangkavr

    Does the archive work if you disable script-based tagging?

    Thread Starter sangkavr

    (@sangkavr)

    Now it is disabled and the archive works. But I have two problems:
    – when I change page next thumbnail are not loaded.
    – some thumbnails are obtained using another function different than classic post_thumbnail, so a lot of them are not lazyfied (?!?)

    For the first issue I think it’s cause the pagination ajax event doesn’t rebuild the dom.
    For the second one I need an hook but I’m not able to nail it.

    Plugin Author dbhynds

    (@dbhynds)

    Thanks for the input. That helps me narrow down the problem. I think you’re right about the ajax. I’ll look into how to accomplish that.

    For the post_thumbnails that aren’t getting lazyfied (I like that word!), what function are you using? wp_get_attachment() ? or something else? For my next release, I’d like to incorporate some sort of api that users can hook into and send custom HTML to be filtered. However, this isn’t available for the current version.

    Thread Starter sangkavr

    (@sangkavr)

    For the other images I used a function found on internet (catch_that_image) that I modified a lot for my purpose.

    Plugin Author dbhynds

    (@dbhynds)

    I have a development version of the plugin here. It allows you to pass HTML to the function get_lazyloadxt_html().

    Pass HTML to it as a string. It gets returned as a string, which you can echo.

    Thread Starter sangkavr

    (@sangkavr)

    Thanks. I’ll try it.

    Plugin Author dbhynds

    (@dbhynds)

    I have implemented this change into version 0.4, which is now released. Let me know if you have any problems with it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘I don't see any effect’ is closed to new replies.