Live data from Hacker News

Chrome to get lazy load below-the-fold images and iframes

groups.google.com

21–30 of 69 posts

Re: Chrome to get lazy load below-the-fold images and iframes

#21

  On Android Chrome with Data Saver turned on, elements with loading="auto" or 
  unset will also be lazily loaded if Chrome determines them to be good 
  candidates for lazy loading (according to heuristics).
I don't agree with this design decision to make the default ("or unset...") allow for lazy loading, even if limited to Data Saver enabled phones. Doesn't this mean every site on the planet that deems Android >= 7.0 web traffic important and makes use of pixel-based or iframe-enclosed tracking will have to go through testing and potential modification?

Re: Chrome to get lazy load below-the-fold images and iframes

#23
I've had the idea of doing a similar thing in application code for XHRs. For example, if you have a React app and you structure your code so that components declare their own data dependencies, then you can have a framework-level solution where you measure component positions on mount and give priority to data fetching for components above the fold.

I never actually implemented it, though, just seemed like a nice idea. Anyone know if existing data fetching frameworks (e.g. Apollo Client) can do anything like that?

Re: Chrome to get lazy load below-the-fold images and iframes

#24

The downside of this is that it assumes that I am always online, and I can never know if a page has finished loading. Say I load an article in a background tab to read later, then go somewhere without WiFi like, say, an airplane. I read the first page, hit the space bar, and see gray boxes. Now I need to either scroll all the way through any article I want to read later (unless "infinite scroll" happens), or save it…

There is a Chrome optimization that already exists and has a similar downside: Taking away processing from unfocussed tabs. Example: Load Google play music. Switch to another tab while it loads. Switch back to music some time later. It only now actually starts loading. Quite annoying...

Re: Chrome to get lazy load below-the-fold images and iframes

#26

The new attribute’s value names look poorly chosen. “Lazy” and “eager”. Why don’t they use existing vocabulary like “deferred“ for lazy, and a new, equally professional word for eager.

Well, they clearly don't have the right connotations for you, but those words have a lot of academic CS credibility and mystique.

You must have heard "lazy" before, but eager is a term of art as well: https://en.wikipedia.org/wiki/Eager_evaluation

Re: Chrome to get lazy load below-the-fold images and iframes

#27

The new attribute’s value names look poorly chosen. “Lazy” and “eager”. Why don’t they use existing vocabulary like “deferred“ for lazy, and a new, equally professional word for eager.

"lazy" and "eager" are the pre-existing widely used terms for this.

Re: Chrome to get lazy load below-the-fold images and iframes

#29
Why they say they are pushing this:

* "Speed up the load of above-the-fold content, since there will be less competition for network resources during the initial page load"

Why don't they just set a low priority for offscreen images and resources? Isn't this the entire premise for HTTP/2, that multiplexing with priorities and flow control would load the important data first? Do servers not implement the spec correctly? So this reason is BS as the data saved is immaterial.

* "Reduce memory usage."

Even commodity phones come with several gigabytes of RAM, the memory may have to be used anyway if the user scrolls, and if you have unlimited scroll or massive scroll something will need to unload data anyway. So this reason is marginal at best.

* "Save network data by avoiding downloading any deferred content that the user doesn't end up scrolling to"

Most phone plans are unlimited or have data capable of watching movies. On Google's own Fi plan "less than 1% of individual Fi users ... use above 15 GB". So this is another BS reason as the data saved is immaterial.

So why are they actually pushing this?

Under "privacy considerations": "so slightly more information about the user's scrolling position on the embedding page is exposed" and "a deferred cross-origin image gets an additional piece of information about the user's scrolling position".

This is not hard to figure out - they are barely even trying to hide it. Same thing as pushing HTTP/2, which I contend was at least partly to track people using socket IP:port address (for instance by keeping a single connection to google-analytics open that all domains' data goes through and boosting the connection keep alive from a few minutes to like half an hour, which they did).

Re: Chrome to get lazy load below-the-fold images and iframes

#30

How is this only now getting implemented? I’m very surprised. Also, do we yet unload images (from memory) after a user scrolls far past them? I’m always surprised how slow “long” webpages become.

I thought this was implemented already too.
Post reply on HN