On 1/22/14 8:14 PM, Bruno Racineux wrote:
Meanwhile, is there a way in which all vendors can prevent their
pre-loaders from preloading (and loading at all for that matter) any <img>
that has either: An html5 hidden attribute
This is feasible.
or display:none
This is not really. The preload scanner has no idea bout styles.
I think it's safe to say that, for the browser to load assets marked as
'display:none;' makes little sense
<script> elements are display:none, note.
So are <link> elements. Both get preloaded.
And people do in fact depend on display:none images being preloaded on
the web today. People paint those images to canvases, unhide them and
expect them to show immediately, etc.
-Boris