Closed (fixed)
Project:
Image Lazy Loader
Version:
8.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
22 Feb 2018 at 10:45 UTC
Updated:
25 Apr 2018 at 08:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
psebborn commentedI've created a Drupal 8 version; this is a bit cut down as an initial pass though.
Instead of a new field formatter, I've just added a checkbox to the existing image / responsive image formatters to pick if the image should be lazyloaded or not.
If it is then the lozad library is loaded and the attributes updated.
I thought this could be a good start; happy to add the settings and animation features at a later date though.
I've attached a tarball with my version of the code - have a look through and please, give me some feedback!
Comment #3
urix commentedI can't find settings page for this module
/admin/config/media/image-lazy-loader - not found
Comment #4
psebborn commented@urix is this for the D8 port? For the port I've not actually implemented the settings page as for my use case I just needed the lazyload on/off attributes without the need for the animations.
The README.txt in the tarball from #2 should hopefully explain this; shout if it's not though!
Comment #5
psebborn commentedComment #6
psebborn commented