993 karma · joined October 6, 2014
Also look at the speedometer benchmark (http://browserbench.org/Speedometer/) for a more realistic comparison of how slow your mobile device is compared to your desktop when running real world apps. Here are some numbers from the benchmark from some devices - http://benediktmeurer.de/2016/12/16/the-truth-about-traditio...
Though these are great tools to help us test, I still strongly recommend using real devices with real network conditions to do tests like these.
Or who knows, people might start animating images on canvas or something. Allowing auto play in some conditions seems to be lesser of two evils according to me..
We have seen people integrate with it in under 5 minutes and cut down their page size by 40%!
Though, this site is cool in showing the power of CSS, I am not sure if there is any specific advantage of using CSS over JS to design tabs, sliders, etc. Just use the best tool for the job!
IIRC, Chrome was using the FileSystem API which was supported only in Chrome - hence the partial support for offline functionality in Google docs..Only recently have the specs behind Persistent Storage API and Service workers have matured. I would love to see Google docs to make use of these APIs to make the functionality available across browsers.
Also, PNacl -> Web Assembly which Google has supported.
Of course Android OSes are going to ship with Chrome as a default browser - at least you have the choice of installing a different browser if you want to. Unlike Apple, where all browsers are forced to use the same JS engine provided by Apple.
Google has been pushing web standards for a long time now - instead of platform specific APIs and saying that the internet is going to be only accessible from Chrome is stretching it quite a bit..
Of course, if you are distributing the image URL directly, it is useful in that case..
This is Inian from the Dexecure team. We want to build tools to make it super simple for developers to build a fast performing website across different browsers and devices. New features that can speed up websites are being developed by browser vendors at an astonishing pace (picture tag, service workers, client hints, etc). We are looking at ways to help developers adopt these technologies easily.
As a first step towards that, we are excited to launch a product which optimizes all images on your website with a single line of JS code -- no server configuration needed! We are using Service Workers to route all image requests through our optimizing servers. The images are optimized and served according to the device, browser requesting it (Client Hints FTW) and cached on CloudFront's CDN.
Looking to get feedback from the HN community!
The NetInfo API can help in this case but the current spec is still not the best way forward. For example, even if the user is on Wifi, he may be on someone's tethered network and might still want to get a light-weight page. Conversely, some cellular connections might have a very high limit and the user might want to get the best possible experience even though he is on a 3G network.
A user-preference per network connection type would be cool to have!
But even page load time and first render times aren't without their own problems. Resources loaded asynchronously also count towards the page load time - however, they are not necessarily detrimental to the user experience. Similarly, some pages flash a white screen before contents actually starts to appear. In these cases, the first render also becomes meaningless since the user doesn't care about the "paint" of a white screen.
Recently, other metrics such as the speed index and [RAIL](https://developers.google.com/web/tools/chrome-devtools/prof...) have come about. (Just the initial page load time does not matter for a good UX)
Mostly there is no one universal metric for all websites. Think about what your user wants to do on your site and optimise for that metric. For example, Twitter optimises for the time for the first tweet to appear on the timeline :)
True it is not the same as the 65ms claimed in the article but its not that far off too.
The location of the test matters too. The time to first byte in your test is 82 ms - so there is no way DOM complete can happen in 65 ms in your case :) Probably try different locations for your test..
1. A direct comparison to Facebook's react Github page may not be fair. Their page is 10 times heavier than the blog page - of course its going to be faster.
2. Actually the Facebook's React page is not that well designed when it comes to performance. I see a lot of scripts included in the FB react page blocking rendering (codemirror.js, etc) even in pages where they are not used. If those are removed, the time to first render should drop down by a lot.
3. I feel a more apt comparison would have be comparing to a purely static page like a blog hosted on Github. Not a page which actually includes a live code editor!
4. No one says the page loads in the DOMContentLoaded time. It is mostly a useless metric when it comes to performance measurement.