Closed (outdated)
Project:
Gallery formatter
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2012 at 18:42 UTC
Updated:
13 Nov 2024 at 10:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #0.0
Jarviss commentedcorrection
Comment #0.1
Jarviss commentedcorrection
Comment #1
Jarviss commentedYou may take Ajax image load code onClick image pager from this module (it works with Drupal 7.14)
Comment #2
maximpodorov commentedA naive implementation of lazy image loading.
Comment #3
manuel garcia commentedThanks for the patch @maximpodorov !
However you cant do this just with jQuery, I've setup a testing site with the patch applied here so we can see it:
http://sed6534c617655b7.s3.simplytest.me/node/1
If you check the Net tab on firebug and refresh, you'll see all images are still being downloaded on page load.
For this to happen we have to alter how the images are printed:
Comment #4
manuel garcia commentedFurther more, I think this should be optional, for it will render the gallery without JS enabled not functional...
Comment #5
maximpodorov commentedMy patch does exactly this. It changes src attribute of larger images to inline data image (white 1x1 image).
Comment #6
manuel garcia commentedI think we should probably look into integrating with https://drupal.org/project/jail
Comment #6.0
manuel garcia commentededit
Comment #7
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks