Now there is no way if you want to keep the markup clean. You have to choose speed or validity/accessibility (e.g.: js disabled cases).
- Balázs On Fri, Jun 10, 2011 at 2:41 PM, tibolan <[email protected]> wrote: > Hi, > > I used to use some scripts like LazyLoad.js (http://www.appelsiini.net/ > projects/lazyload), but, as the author said, it's not anymore usable. > > This script change the src of the image by a blank.gif if the image is > not visible for the moment (above the fold line),and listen the page > scroll to refresh DOM. > > In old time, doing this, stopped the download of the image, and could > save many bytes during load period. > > But, from now this trick do not work anymore, and the image continue > downloading untill this full load... > > My questions: > > 1- why all bowsers do the same thing now ? is there a specification > about that ? > 2- have you got a clue, idea to solve this problem in modern browsers, > without doing some so ugly stuff ? > > I saw on a french news site (nouvelobs.fr), a rudimentary technique, > that directly set the src with a blank.gif, and store the real src in > the className of the image. The script just have to change the src by > the className content when it necessary. I'm looking for something > cleaner than that, that keep the HTML "well-formed". > > Thank for your feedbacks ! > > > -- > To view archived discussions from the original JSMentors Mailman list: > http://www.mail-archive.com/[email protected]/ > > To search via a non-Google archive, visit here: > http://www.mail-archive.com/[email protected]/ > > To unsubscribe from this group, send email to > [email protected] > -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
