Built-in Lazy Loading Lands in Google Chrome Canary (bleepingcomputer.com)
secwatcher writes: Google has started rolling out support for built-in lazy loading inside Chrome. Currently, support for image and iframe lazy loading is only available in Chrome Canary, the Chrome version that Google uses to test new features. Two flags are now available in the chrome://flags section of Chrome Canary. They are: chrome://flags/#enable-lazy-image-loading, chrome://flags/#enable-lazy-frame-loading. Enabling these two flags will activate a new type of content loading behavior inside the Chrome browser. The two flags have been available in Chrome Canary for a few days, since v70.0.3521.0.
Tells us the exact names of the config flags, doesn't even explain what lazy loading is. More like lazy editing.
In the web platform, lazy loading means don't download anything until the user scrolls to it.
A lot of websites have implemented their own lazy loading in JavaScript for two reasons. One is improving perceived page load time by prioritizing the first screenful of the document. The other is saving server bandwidth (and client bandwidth for users on metered cellular Internet) by not serving large images that the user is not likely to view. But two drawbacks of this sort of lazy loading are 1. incompatibility with clients that do not use JavaScript and 2. incompatibility with clients that download a page over unmetered home Internet for later reading while offline or while on metered cellular Internet (such as while riding the bus).
Chrome Canary is the unstable nightly build of the Google Chrome web browser, akin to Firefox Nightly.
Ok, it might just have been lines being slow, but developers ordered websites to set loading order since the dawn of the web.
Or is this for users? (Ok, good joke. What browser is *for* users nowadays?)
In that case, ad blockers and the noscript placebo already take care of pretty much all of that.
Then again, having an OS ... running on ... an OS ... is already pretty stupid.
But we know what happened to XUL.
I'd like to know if the Lazy Loading function of deferring loading images and third-party iframes on the page until the user scrolls near them breaks Ctrl+F/"find in page".
Google had to re-do "Print" and "Save Page As" in order to support Lazy Loading. Did they also make Ctrl+F work or not?
Unless it is dynamically loaded content Ctrl-F will work just fine as the text of the document has still been fully download, just not necessarily all the images it describes.
"Wait. Something's happening. It's opening up! My God, it's full of apricots!"
For god's sake, whatever you do, don't tell us what lazy loading is anywhere in the summary.
Ah, but what about text in third party iframes?
That's precisely what bookmark folders are for! They already do "lazy loading". By only loading when you actually click them! All you do is duplicate bookmark functionality yet another time, with another UI. Badly!
And don't tell me you can find anything in that mess. You are not a superhuman. You can only keep an overview over 6-9 non-groupable things at the same time in your brain's active memory anyway. Everything beyond that, and you are wasting time and resources because of your laziness.
Some web sites do this already, the problem is the initial loading is faster, but sometimes scrolling is badly affected while the rest of the page is loaded. I would rather wait once and have the whole page load. I suppose most at Google have really fast internet so they could care less how it affects the average user.
Fuck third party iFrames.
(my opinion as a regular user)
...gis sdrawkcab (usually not responding to ACs; don't bother posting as AC)
So, does this fix the "soak up every goddamn CPU cycle and peg all 4 cores" problem?
Asking for a friend
Suppose you were an idiot and suppose you were a member of Congress
They should be THE LAST thing that loads, if you aren't using a blocker.
Some websites' operators may not want non-subscribers to print documents or read them offline. The following assumes the point of view of such websites:
1. So how does Print / Save to PDF work?
First you sign up for a recurring monthly payment on each website whose documents you want to print. Then you can download the document in PDF form from the website. If you try to print without first subscribing, the site may put garbage all over the printed version to make it less desirable, as the ads served along with the document are targeted to your interests, not to those of subsequent readers. Ars Technica is like this.
2. The browser does not know if I am going to view the page offline later.
The website treats offline reading as a perk for subscribers. If you don't want to subscribe to a website, you can avoid going offline in the first place by paying a cellular ISP for a subscription to cellular Internet access. Bores DSP is like this.
Lazy loading is a very useful feature for webapps if done correctly, especially for mobile.
Here is a real world example of something I'm working on right now...
We have a very large app.
The target users are Doctors and medical providers. Smartphones and low end tablets are basically ubiquitous now, so it makes sense to build our app as a webapp and since we are dealing with live patient data sometimes in life or death scenarios, caching the data isn't wise.
This app is composed of about 900 different task specific "widgets" configured into about 20 different workflow based "views".
This app needs to be able to load quickly even over dialup speed connections where there maybe costs of up to $0.50 per KB (imagine satellite internet in a remote hospital).
If we were to deliver this as a traditional webpage with forms and a normal client/server model, we would be forced to resort to a single thread to update the whole page and the code quickly gets messy server side. Furthermore, the bandwidth costs would be horrific with a lot of waste.
Instead we deliver the "views", which are static HTML webpages and update the content by subscribing to websockets and then posting requests in the background. Each view has a collection of widgets. The widgets each manage their own state, and handle subscribing to the correct feeds to update themselves.
This is a great way of doing it because different roles have different workflows and thus they need to have different views into the same data in order to do their job. Example a Pharmacist would need access to a patient's prescriptions, but not the ability to write prescriptions. So prescription write and prescription read are different widgets. A doctor needs access to both reading and writing prescriptions, so the doctor's workflow contains both a prescription write and a prescription read widget in the prescriptions views. A pharmacist would only have the prescription read widget in their view.
To save on bandwidth and also to avoid cluttering the UI with a lot of widgets they won't be using anyways, we use lazy loading to ensure only the widgets and views that a particular role can use are delivered. This saves time for pageloads and it saves money because it lowers the sheer number of KB transferred. Current lazy loading solutions require a JS shim. The less shim code we have to deliver, the tinier the app.
Ad/script/tracker/malware blocker via hosts = better + FASTER: APK Hosts File Engine 2.0++ 64-bit for Linux & BSD h t t p : / / a p k . i t - m a t e . c o . u k / A P K H o s t s F i l e E n g i n e F o r L i n u x . z i p (remove spaces between characters & download).
Yields more security/speed/reliability/anonymity vs. any SINGLE solution (99% of threats use hostnames vs. IP addresses most firewalls use) more efficiently/FASTER + NATIVELY 4 less!
(Vs. "Bolt on 'MoAr' illogic-logic" competitors slowing you, hosts speed you up 2 ways (adblocks + hardcodes u spend most time @) vs. competition loaded w/ security bugs (DNS/AntiVir) + overheads (messagepass ('souled-out' to advertiser addons) + filtering drivers) & their complexity leads to exploitation) + protects vs. script trackers & ads + DNS requestlog tracking
* ONLY 1 of its kind in GUI on Linux!
APK
P.S.=> Protects vs. trackers/ads/DNS reques tracking/botnets/malware downloads/email malcious payloads... apk
Your software is just fine - well written, functional... I'm going to continue using the Host File Engine by mmell February 17, 2017
Your premise that hostfiles are a good way to deal with advertising and malvertising is quite valid - by JazzLad April 20, 2016
his hosts program is actually pretty good by xenotransplant August 10 2015
his hosts tool is actually useful for those cases in which one does indeed want to locally block stuff outright while consuming minimum system resources by alexgieg September 25 2015
I like your host file system by Karmashock September 09 2015
that APK guy, I use his host file by rogoshen1 Tuesday March 03, 2015
I personally use a HOSTS file blocker produced from a genius called APK by 110010001000 October 27 2017
* Linux model = faster/more efficient
APK
P.S.=> APK Hosts File Engine 9.0++ SR-1 32/64-bit for Windows https://www.google.com/search?...
Apk has the answer for that - really... kill automatic updates by adding a hosts file entry setting updates.steam.com or whatever to 127.0.0.1. You have to find the right hostname for each software you want to block updates on by raymorris (2726007) on Friday July 06, 2018
APK your posts on this and the hosts file posts, and more, have never been in error and/or bad advice by BlueStrat (756137) on Wednesday June 21, 2017
I support APK's stand on the hosts file and can't see why it's not used more than it is. My hosts file is 144247 lines long (4,332 Kb) it & a firewall serves me very well - by Trax3001BBS (2368736)
ABP is insufficient as a solid hosts file does everything APK reminds us about fast turtle September 17 2013
You need APK's hosts file - by Teun (17872) on Wednesday August 06, 2014
APK
P.S.=> 5 more like it coming - EAT YOUR WORDS... apk
APK solution STILL relevant Thud457 June 11 2015
Actually, APK is totally right on this count. Adblock Plus on Firefox mobile is a dog on older, or lower end, phones. A hostfile based adblocker makes for a much better experience in this context. Of course, your phone has to be rooted, which isn't the case with Firefox + adblock." - by chihowa on Saturday May 16, 2015
In a footnote, I would like to note that I find your hosts file admirable - by vel-ex-tech (4337079) on Tuesday November 24, 2015
APK's monolithic hosts file is looking pretty good at the moment - by Culture20 on Thursday November 17
you're right about hosts files - by drinkypoo (153816) on Thursday May 26
APK, I know people give you a lot of shit regarding hosts, but please don't ever stop - by nasredin (958927) on Friday June 12, 2015 @03:34PM
APK
P.S.=> More coming... apk
I say the following as a caring human being who agrees with how useful HOSTS files are: Your zeal is to be respected - by dave420 (699308) on Monday September 08, 2014
But I love APK!The power of the hostfile compels you! by ratboy666 (104074) on Friday January 29, 2016
APK was right all along! C:\WINDOWS\HOSTS is the solution ;) - by sabri (584428) on Friday October 21, 2016
No complaints from me, I like APK's spam. Reminds me to use a host file. Also, his stuff is free. - by aaaaaaargh! (1150173) on Tuesday November 17, 2015
APK was right! Is it time for us to point Sourceforge to a non-address in our hosts files, and let Sourceforge know we have done same? - by wonkey_monkey
I'm a fan of apk. Yes he trolls, but he only trolls where it's contextually appropriate. I respect that - by Noah Haders (3621429) on Wednesday July 29, 2015
APK
P.S.=> MORE coming... apk
APK is kinda right... I've given up on JS based adblocking and gone to blackholing in /etc/hosts, just like it was back in the 90s. The computational load has gotten intolerable for any ad-blocking using JS. I've tried his hosts file generating software. It works. - by bmo (77928) on Thursday October 15, 2015
get around to 'installing' a hosts file list, not sure which one, likely the one from someonewhocares.org. If it works as well as what I used for a while about ten years ago, I'll be happy. And grateful to APK for the lesson and the reminder. - by kermidge (2221646) on Wednesday March 27
I actually went and downloaded a 16k line hosts file and started using that after seeing that post, you know just for trying it out. some sites load up faster. - by gl4ss (559668) on Thursday November 17
dammit MS, you proved APK right about something by lgw
"host file shit works for the plebs that don't know how to protect them self." by Highdude702 (4456913)on Sunday July 15, 2018
APK