Google's Effort To Speed Up the Mobile Web (ampproject.org)
An anonymous reader writes: Google has officially taken the wraps off its AMP project — Accelerated Mobile Pages — which aims to speed up the delivery of web content to mobile devices. They say, "We began to experiment with an idea: could we develop a restricted subset of the things we'd use from HTML, that's both fast and expressive, so that documents would always load and render with reliable performance?" That subset is now encapsulated in AMP, their proof-of-concept. They've posted the code to GitHub and they're asking for help from the open source community to flesh it out. Their conclusions are familiar to the Slashdot crowd: "One thing we realized early on is that many performance issues are caused by the integration of multiple JavaScript libraries, tools, embeds, etc. into a page. This isn't saying that JavaScript immediately leads to bad performance, but once arbitrary JavaScript is in play, most bets are off because anything could happen at any time and it is hard to make any type of performance guarantee. With this in mind we made the tough decision that AMP HTML documents would not include any author-written JavaScript, nor any third-party scripts." They're seeing speed boosts anywhere from 15-85%, but they're also looking at pre-rendering options to make some content capable of loading instantaneously. Their FAQ has a few more details.
They shrink down the content, but keep the ad network bullshit huge in comparison.
Mobile web without that rubbish is almost instant even on a struggling 3G connection. Hell, even regular web pages with junkware scripts blocked are quick-as.
You're looking in the wrong place, google.
I mean, at least I hope it doesn't. Grow the bandwidth, don't restrict developers. Validators that predict performance issues before deployment, which google already provides in some form or another, is a better way to go. Just publicize them more and make them easy to use. How about an official google benchmark suite that works with everything and anything and just emits its opinion of our shitty code?
The performance problem isn't with mobile web, it's with *Android* web. Apple devices are approaching desktop-level performance on js-heavy pages while android devices are getting worse and worse. A considerable contributor to this problem is the trend for android devices to show more cores in them, not faster ones. JS is still single-core after all.
Interesting comparisons here: https://meta.discourse.org/t/the-state-of-javascript-on-android-in-2015-is-poor/33889
Disclaimer: I am an andoid fanboy.
Look Google, if you want to tell us not to use JS after expending all of that effort getting us hooked on your Javascript frameworks, well, I think you'll find some people see it as you giving up and phoning in a lame non-solution. Just work with people who actually think about how to actually migrate the web into the future, like the WebAssembly guys, rather than reinventing it every year with increasingly fragmented "solutions". You've only been causing problems or making them worse by adding your junk to the web. Even WebM was a bust because you decided to drop h264 support, so why the heck would anyone bother with WebM? After all of these wasteful re-engineering efforts, I'm not about to jump ship on scripts just because you tell me to quack. I didn't want them in the first place, but you just said it would be alright, V8 was awesome, so don't bother with noscript tags and graceful degradation, just use Angular or whatever. Now I just don't care anymore. I'm frankly starting to miss the slower web that took years to give us rounded corners, but at least I didn't have to worry about ES6 support dragging out because you want to upsell Dart or something, or not bother with Pointer Events because "fixing our browser to support useful mobile standards is too hard, so we're not bothering and will instead introduce our own half-assed Touch Events spec that we'll backpedal on later".
Its WML time!
Bye!
This'll be great for individuals, but companies won't accept it. The first problem is that ad networks won't accept the limitation, so any site that shows advertising will have to eschew AMP. The second problem is that companies use Javascript frameworks so heavily in their Web design that they won't be able to just drop it and go back to static HTML/CSS for their sites. If they were willing to, after all, Google wouldn't've seen such a need AMP in the first place.
I think the same results can be achieved by three things:>
1. Strip advertising down. Ads are the biggest things I find slowing mobile Web pages down as the ads do so many things to keep content from being accessed until the ad's been seen and dealt with and fetch so much stuff from so many remote servers. Minimize the number of ads and make them as simple as possible.
2. Stop using images for layout and convert to using CSS instead. Yes you lose the ability to do fancy brand-specific artwork on headers and separators and such, but you know what? Most users don't care about those things.
3. Stop using dynamic layouts that load the entire page and then make changes to it that alter it to it's final layout. Just lay things straight out so the browser can render stuff as it's loaded. Specify sizes for images, drop the "Tap to read the rest" buttons that hide the bulk of the content (but still require it to be loaded before the page can render), that sort of stuff.
Easy way to do this: one of your test machines runs Windows XP on hardware with a 500MHz CPU, 256MB of RAM, an unaccelerated graphics card with 2MB of video memory and a 56K modem (or 115200bps serial link) for network connectivity. If your site performs decently on that, it'll be good on any mobile device.
Ads are what slow down the mobile web. Eliminate them and it runs blazingly fast.
Reckon you can do that, Google?
This is part of a general trend that I call 'open season', basically big companies persuading naive people to do their work for nothing, under the banner 'open source'.
On y va, qui mal y pense!
not. google can suck it
I'm reporting you to TheHaikuLover !!!
NY Times had an article about the cost of mobile ads, the article also had some interesting data about load-times and how much data was javascript, videos, images, embeds etc.
http://www.nytimes.com/interac...
Posting as its related to the efforts described above
so basically its a set of specs that allow google to cache your webpage and allow you to track it
WHY OH WHY not simply use the standards outlined here : http://www.w3.org/Mobile/
and then produce a validator so that sites can be cached by oh I dont know the network operator or anyone including google after all are they not closer to the endpoint ?
seems very pointless and a reaction to facebook allowing publishers to push articles in their network...
regards
John Jones
We don't need yet another phone oriented "standard". All that's needed is for sites to clean the stupid cruft out of their web pages, and to not do brain damaged de-contented "mobile" versions. Just clean up your damned code and stop with the stupid shit.
Remain calm! All is well!
has anyone else heard this rumor?
Jeff Atwood wrote this great article https://meta.discourse.org/t/the-state-of-javascript-on-android-in-2015-is-poor/33889 that shows how far Android has fallen behind.
1. i-Mode failed in a similar trend.
2. We need a different approach for mobile displays, not a different approach to pages. Computer screens are landscape while "mobile stuff" is portrait in most cases
3.We need to close the gap between PC browsers and mobile ones. In either way. As of now the gap is wide large.
Maybe Computers will never be as intelligent as Humans.
For sure they won't ever become so stupid. [VR-1988]
I figured all of this out in 1998. No jokes.
You load more crap, the page loads slower. You make it more complicated, it loads slower. Your web developer is an incompetent script kiddie, the page loads slower.
The problem is not for the big companies , but for personal users who gain from this advertising, and publicity ironically is owned by google ...
today news site, trends, technology and video games
http://efezinco.com la revista online con actualidad moderna y sencilla
so that there's enough time and bandwidth for our ads and analytics. Fucking hypocrites.
Whatever happened to the original design of the web were web developers only had to describe the content and then the browsers would render it the best way for the device? I liked that. Every step away from that is a step in the wrong direction.
Why nobody reads? AMP does not disable javascript, because creating elements using "custom elements" and "web components" allow full javascript access.
Javascript inside custom elements causes no problem because doesn't blocks the rendering of the page, just of that element leaving accessibility to javscript e good performance.
Something google is pushing on with their project polymer
removing heavy adverts and excessive usage of cross-scripting, to begin with?
The problem is HTML. HTML is for documents, not the living application-like multimedia canvases we've all been using since 2000.
Flash was pointing in the right direction, but it was proprietary and Adobe screwed it up.
Simply setting up a usefull canvas layout is pure torture in HTML, with tons of libraries, JS and CSS hacks, just to get the thing sort of running.
Ginormous hacks such as Googles Polymer try to pry some sort of sanity from this plattform with a huge effort and enable modern age development, but the simple fact is, HTML is at least 15 years behind what Flash or similar approaches had to offer.
And don't even get me started on building a usefull web-application with useful clientside logic without a bizar convoluted mess of tie-ins and callbacks.
Example: This multimedia website in Flash is 16 years old. That is sixteen years . ... It's from freakin' 1999!!. It's parely possible to make such a thing with todays HTML, without becoming an all-out programming and browser expert and spending a forbidding amout of time getting it right.
HTML, CSS and client side logic - wether with JS or something else - need a massive redesign for modern day multimedia and multi-screen requirements. When that happens, performance will be sane again. I expect web components and web assembly to get us back on track a little, but that's gonna take at least another five years.
Bottom line:
The web is a mess, and frickin' HTML and the ignorant smelly boring nerds that still push it as a cure-all are to blame.
Disclaimer: I'm a senior web-developer with focus on FOSS technologies.
We suffer more in our imagination than in reality. - Seneca
Reading through the comments, many read like as if the commenter thinks that google doesn't know that their ads, scripts and trackers are not the best. I'm quite sure google knows that ads are making the internet, in general, a less than ideal experience. That's why a lot of people are using an adblocker. The thing is, has anyone considered that google may want to speed things up so that they can get away with loading up all these crap scripts, trackers and ads? After all, the less people notice that these things are taking place, the less likely they are blocking them, well that's my conjecture anyway.
Use the Ghostery browser, problem solved.
For those who don't know, Ghostery cannot be offered separately, because Android Apps are not allowed to screw with each other's data. So Ghostery brought out a browser than includes the blocking. The web is a lot saner this way.
Regarding TFA: I am not at all fond of the idea of yet another web standard
Enjoy life! This is not a dress rehearsal.
As opposed to the other kind of Javascript.
As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
Completely blocking Javascript would probably fix things a whole lot easier.
Problem solved.
Use Firefox for Android. It's improved drastically over the past 3 or 4 versions, plus you can use most of your favorite extensions. I use it with uBlock and the built-in tracking protection turned on.
You want a faster web? Stop loading every page with 5 to 10 MB of ads and trackers.
A typical page now has 50 ~ 75K of text (content) and 9.5 MB of ads and other horseshit like auto-play video, trackers, remote metrics, etc etc etc.
Seriously, cut that shit out.
Just cruising through this digital world at 33 1/3 rpm...
It shouldn't be surprising to anyone why performance on the web sucks ass. Each site needs to knowingly or unwittingly enlist dozens of global stalking/analytics providers so that no matter where any user goes multiple companies are watching their every move across the web. Apparently it is too difficult to bother running a stats package on your own access logs anymore. I say unwittingly because many of these firms have cross agreements with other stalking companies when you reference their crap references automatically spider out.. Pick a site any site and filter for just DNS queries from browser. The sheer volume of this senseless redundant crap is whacknutz crazy.
Other problems: unnecessary layering, people who don't know what round trip delay is and think piecemeal dynamic loading of content thru xmlhttprequest et al is some kind of badge of honor, jquery gobblygook used to emulate simple hyperlinks, metric shittons of inline javascript and pages that otherwise resemble generated code from Microsoft front page.
Some quotes from amp project:
A goal of the Accelerated Mobile Pages Project is to ensure effective ad monetization on the mobile web while embracing a user-centric approach. With that context, the objective is to provide support for a comprehensive range of ad formats, ad networks and technologies in Accelerated Mobile Pages. As part of that, those involved with the project are also engaged in crafting Sustainable Ad Practices to insure that ads in AMP files are fast, safe, compelling and effective for users.
It is a core objective of the Accelerated Mobile Pages project to support subscriptions and paywalls.
Ensuring publishers are able to get robust analytics insight is a core design goal for the project.
The problem isn't the technology. All resources freed up by consolidating efforts will just be spent on more of the same.
See subject: Globally setting NOT to take them on ALL sites & then making some exception sites that need those to work + hosts & firewalls, I get none of it-> APK Hosts File Engine 9.0++ SR-2 32/64-bit http://start64.com/index.php?o...
FREE & not 'souled-out' to advertisers, + adds speed, security, & reliability, doing FAR more w/ FAR less, more efficiently vs. redundant browser addons & locally installed DNS servers @ home + fixes DNS' many security issues!
It obtains its data vs. online threats & adbanner blocking from 10 reputable sites in the security community!
It SPEEDS YOU UP 2 ways (adblocking + locally cached in RAM favorites placed @ the TOP of hosts for fastest resolution speed), whereas by way of comparison, other "so-called security 'solutions'" SLOW YOU DOWN!
It does all that using something you already have vs. "bolting on browser addons 'MOAR'" in addons that's usermode slower & increases messagepassing, cpu + ram overuse overheads!
* :)
MalwareBytes' hpHosts Admin (MalwareBytes employee) hosts & recommends it -> http://hosts-file.net/?s=Downl... & MalwareBytes = BEST antivirus per this VERY recent testing of them all http://www.av-test.org/en/news...
&
It's safe per it being checked by 57 antivirus programs recently in BOTH its 64-bit model https://www.virustotal.com/en/...
+
In its 32-bit model also https://www.virustotal.com/en/...
---
"The premise is quite simple: Take something designed by nature & reprogram it to make it work for the body rather than against it..." - Dr. Alice Krippen: "I am legend".
APK
P.S.=> By "yours truly" - "The Lord of Hosts" so-to-speak:
PERTINENT QUOTE/EXCERPT:
"The image this title brings to mind is of a mighty military commander, one who can at a mere word summon rank upon rank of protective power" from https://answers.yahoo.com/ques... & THAT WORD = hosts!
(Accept NO substitutes!)
...apk
I strongly suspect that the majority -- maybe the vast majority -- of the data that is being retrieved by my web browser is not related to viewable content at all but is devoted to snazzy menu functions and, well, crap that I might not even choose to view. It like having the entire set of encyclopedias delivered to your door when you want to look up one simple thing. (Yeah... I remember encyclopedias.)
I would welcome eliminating the glitz and dancing bologna that litters most web pages today.
CUR ALLOC 20195.....5804M
See subject: Globally setting NOT to take them on ALL sites & then making some exception sites that need those to work + firewalls & hosts, I get none of it-> APK Hosts File Engine 9.0++ SR-2 32/64-bit http://start64.com/index.php?o...
FREE & not 'souled-out' to advertisers, + adds speed, security, & reliability, doing FAR more w/ FAR less, more efficiently vs. redundant browser addons & locally installed DNS servers @ home + fixes DNS' many security issues!
It obtains its data vs. online threats & adbanner blocking from 10 reputable sites in the security community!
It SPEEDS YOU UP 2 ways (adblocking + locally cached in RAM favorites placed @ the TOP of hosts for fastest resolution speed), whereas by way of comparison, other "so-called security 'solutions'" SLOW YOU DOWN!
It does all that using something you already have vs. "bolting on browser addons 'MOAR'" in addons that's usermode slower & increases messagepassing, cpu + ram overuse overheads!
* :)
MalwareBytes' hpHosts Admin (MalwareBytes employee) hosts & recommends it -> http://hosts-file.net/?s=Downl... & MalwareBytes = BEST antivirus per this VERY recent testing of them all http://www.av-test.org/en/news...
&
It's safe per it being checked by 57 antivirus programs recently in BOTH its 64-bit model https://www.virustotal.com/en/...
+
In its 32-bit model also https://www.virustotal.com/en/...
---
"The premise is quite simple: Take something designed by nature & reprogram it to make it work for the body rather than against it..." - Dr. Alice Krippen: "I am legend".
APK
P.S.=> By "yours truly" - "The Lord of Hosts" so-to-speak:
PERTINENT QUOTE/EXCERPT:
"The image this title brings to mind is of a mighty military commander, one who can at a mere word summon rank upon rank of protective power" from https://answers.yahoo.com/ques... & THAT WORD = hosts!
(Accept NO substitutes!)
...apk
I've seen it with software development and with web development. People get fast computers and fast network connections and they forget that other people don't have those. They forget that not everyone is in their country and has that infrastructure. If you want your pages to load faster on the mobile web then do the following (it will also work on regular sites) and it can save on your bandwidth costs too
1. Clean up your HTML - Many content generators add in a lot of extra space that easily double or triple the size of the file. Get rid of it but still keep it nicely formatted for easy debugging.
2. Optimize your images - A lot of graphics artists will just export their work to a jpg, png, or gif and say it's done. However with by choosing the proper format, compression settings, etc it's possible to get the file size down to a quarter or even a tenth of the original in some cases. Changing the image size for the mobile site also helps by creating a smaller file and eliminates the need for the mobile device to do the resizing.
3. Optimize your code - It wasn't a mobile site but I once was maintaining a site and the developer was using JavaScript to match items from one collection to items in another collection using an O(n squared) algorithm. It became very slow, very fast. As both collections came from a database I matched them up there and got rid of the terrible code. It was still a crap application but at least it was a more responsive crap application.
4. Stop with multitude of external ads/trackers - A couple isn't going to be too bad but it's gotten way out of hand. Every request to a different server slows down the page loading/being displayed. Keep it to a minimum. If you want to know what your users are doing on your site analyze your logs, that's what they are there for.
5. Add dimensions to your HTML - If you know what the dimensions are of any images, cells, or anything else then specify them. The browser can use that information and start rendering faster without waiting to receive that information or having to redraw the page. I hate getting part way down a page and it gets redrawn because the final elements have loaded so I have to find my place again.
6. Serve images from the right place - Don't serve your images from an application server. That's not it's place. Create a graphics server and put your images there. It'll be much faster and take a lot of the load off of your application server. Around 2005 I was with a group that was hosting a Cold Fusion site that was really slow to load. I save the HTML and graphics from the main page and put the images in a temporary directory on a graphics server. I showed the project manager two versions of the HTML. One was pointing to the production server which got the images from Cold Fusion and the other got the images from the graphics server. The production server took about ten seconds to load while the graphics server was almost instantaneously. I've seen the same thing with Java application servers though not the same difference
7. Stop the modal pop-up - This won't speed up your site but please stop the modal pop-up. I'm not going to sign up for your newsletter, especially if I just landed on your site. And especially since you brought a pop-up asking me to.
Some anon coward
projects insecurity
through crappy haiku
That has been attempted several times. One attempt is compact HTML
http://www.w3.org/TR/1998/NOTE...
See subject & APK Hosts File Engine 9.0++ SR-2 32/64-bit http://start64.com/index.php?o...
FREE & not 'souled-out' to advertisers + adds speed, security & reliability & does FAR more w/ FAR less more efficiently vs. redundant browser addons & locally installed DNS servers @ home + fixes DNS' many security issues!
It obtains its data vs. many types of online threats & for adbanner blocking from 10 reputable sites in the security community!
It SPEEDS YOU UP 2 ways (adblocking + locally cached in RAM favorites placed @ the TOP of hosts for fastest resolution speed vs. remote DNS) vs. other "so-called security 'solutions'" SLOWING YOU!
It does all that via something you already natively have vs. "bolting on browser addons 'MOAR'" that's usermode slower & increases messagepassing, cpu + ram overheads!
* :)
MalwareBytes' hpHosts Admin (MalwareBytes employee) hosts & recommends it -> http://hosts-file.net/?s=Downl... & MalwareBytes = BEST antivirus per this VERY recent testing of them all http://www.av-test.org/en/news...
&
It's safe proven by 57 antivirus programs recently in BOTH its 64-bit model https://www.virustotal.com/en/...
+
In its 32-bit model too https://www.virustotal.com/en/...
---
"The premise is quite simple: Take something designed by nature & reprogram it to make it work for the body rather than against it..." - Dr. Alice Krippen: "I am legend".
APK
P.S.=> By "yours truly" - "The Lord of Hosts" so-to-speak:
PERTINENT QUOTE/EXCERPT:
"The image this title brings to mind is of a mighty military commander, one who can at a mere word summon rank upon rank of protective power" from https://answers.yahoo.com/ques... & THAT WORD = hosts!
(Accept NO substitutes!)
...apk
See subject & APK Hosts File Engine 9.0++ SR-2 32/64-bit http://start64.com/index.php?o...
FREE & not 'souled-out' to advertisers + adds speed, security & reliability & does FAR more w/ FAR less more efficiently vs. redundant browser addons & locally installed DNS servers @ home + fixes DNS' many security issues!
It obtains its data vs. many types of online threats & for adbanner blocking from 10 reputable sites in the security community!
It SPEEDS YOU UP 2 ways (adblocking + locally cached in RAM favorites placed @ the TOP of hosts for fastest resolution speed vs. remote DNS) vs. other "so-called security 'solutions'" SLOWING YOU!
It does all that via something you already natively have vs. "bolting on browser addons 'MOAR'" that's usermode slower & increases messagepassing, cpu + ram overheads!
* :)
MalwareBytes' hpHosts Admin (MalwareBytes employee) hosts & recommends it -> http://hosts-file.net/?s=Downl... & MalwareBytes = BEST antivirus per this VERY recent testing of them all http://www.av-test.org/en/news...
&
It's safe proven by 57 antivirus programs recently in BOTH its 64-bit model https://www.virustotal.com/en/...
+
In its 32-bit model too https://www.virustotal.com/en/...
---
"The premise is quite simple: Take something designed by nature & reprogram it to make it work for the body rather than against it..." - Dr. Alice Krippen: "I am legend".
APK
P.S.=> By "yours truly" - "The Lord of Hosts" so-to-speak:
PERTINENT QUOTE/EXCERPT:
"The image this title brings to mind is of a mighty military commander, one who can at a mere word summon rank upon rank of protective power" from https://answers.yahoo.com/ques... & THAT WORD = hosts!
(Accept NO substitutes!)
...apk
See subject & APK Hosts File Engine 9.0++ SR-2 32/64-bit http://start64.com/index.php?o...
FREE & not 'souled-out' to advertisers, + adds speed, security, & reliability, doing FAR more w/ FAR less more efficiently vs. redundant browser addons & locally installed DNS servers @ home + fixes DNS' many security issues!
It obtains its data vs. online threats & for adbanner blocking from 10 reputable sites in the security community!
It SPEEDS YOU UP 2 ways (adblocking + locally cached in RAM favorites placed @ the TOP of hosts for fastest resolution speed vs. remote DNS) vs. other "so-called security 'solutions'" SLOWING YOU!
It does all that using something you already natively have vs. "bolting on browser addons 'MOAR'" that's usermode slower & increases messagepassing, cpu + ram overheads!
* :)
MalwareBytes' hpHosts Admin (MalwareBytes employee) hosts & recommends it -> http://hosts-file.net/?s=Downl... & MalwareBytes = BEST antivirus per this VERY recent testing of them all http://www.av-test.org/en/news...
&
It's safe proven by 57 antivirus programs recently in BOTH its 64-bit model https://www.virustotal.com/en/...
+
In its 32-bit model too https://www.virustotal.com/en/...
---
"The premise is quite simple: Take something designed by nature & reprogram it to make it work for the body rather than against it..." - Dr. Alice Krippen: "I am legend".
APK
P.S.=> By "yours truly" - "The Lord of Hosts" so-to-speak:
PERTINENT QUOTE/EXCERPT:
"The image this title brings to mind is of a mighty military commander, one who can at a mere word summon rank upon rank of protective power" from https://answers.yahoo.com/ques... & THAT WORD = hosts!
(Accept NO substitutes!)
...apk
I'm late to this party, but I'm surprised I haven't any point out the affect on ad blocking.
If the page is pre-rendered on the server, with there be any clues for the browser to guess what are ads?