Sometimes we need to make more difficult checking before using theme_lazyloader_image than it exists in module`s setting page.
Therefore would be great to have some hook to make it possible to intervene in theme_lazyloader_image logic

Comments

Saviktor created an issue. See original summary.

savkaviktor16@gmail.com’s picture

StatusFileSize
new703 bytes

Here`s the patch

savkaviktor16@gmail.com’s picture

Status: Active » Needs review

.

fgm’s picture

Case in point: I have to only enable lazyloading for images after the first three content units ("below the fold"), but not above.

fgm’s picture

Version: 7.x-2.0-alpha1 » 8.x-1.x-dev
StatusFileSize
new4.21 KB

Adapted for 8.x : allow modules to modify vars prior to lazyfication and skip lazyfication by adding a "lazyloader_ignore" property in $vars.

Also fix some coding standards issues regarding spaces.

pguillard’s picture

Status: Needs review » Reviewed & tested by the community

This one works for a year now, on the site for which this patch was designed, I guess it is ok for RTBC !

  • legolasbo committed 7beb79f on 8.x-1.x authored by fgm
    Issue #2892753 by Saviktor, fgm, pguillard, legolasbo: Add hook...
legolasbo’s picture

Status: Reviewed & tested by the community » Fixed

committed and pushed to 8.x-1.x. Thanks for your contributions!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.