W3C home > Mailing lists > Public > public-web-perf@w3.org > June 2013

Re: [ResourcePriorities] Only specify lazyload on img

From: Simon Pieters <simonp@opera.com>
Date: Tue, 25 Jun 2013 23:59:43 +0200
To: "James Simonsen" <simonjam@google.com>
Cc: public-web-perf <public-web-perf@w3.org>
Message-ID: <op.wy88ptoeidj3kv@simons-macbook-pro.local>
On Tue, 25 Jun 2013 22:27:09 +0200, James Simonsen <simonjam@google.com>  
wrote:

>> script
>>
>> This already has means to control when the script is executed (async and
>> defer). Since scripts are invisible, lazyload seems like the wrong
>> semantic. If the author wishes to load a script at a certain point,  
>> that is
>> possible by creating and inserting a script at that point.
>>
>
> The point is that it doesn't block the load event. You can specify
> everything in HTML, but not interfere with the critical path of the page
> load. An example use would be analytics, where it doesn't need to  
> obstruct
> the page load and can load and run at an arbitrarily later time.

This is already addressed by <script async>.


>> svg
>>
>> This doesn't even fetch anything.
>
>
> Maybe not that specifically, but there are a bunch of things in SVG that
> could use it. I think they have their own <script> tag for instance.

Yeah well, the spec only lists <svg>, and that doesn't make sense.

-- 
Simon Pieters
Opera Software
Received on Tuesday, 25 June 2013 21:58:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:35 UTC