TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The mythical “fast” web page

113 pointsby saranshkover 4 years ago

20 comments

toinbisover 4 years ago
It&#x27;s physics, not perception. Just make your website fast.<p>Am currently consulting big ecommerce bussiness on how to improve page load. I made them this &#x27;fastest page in the world&#x27; demo: <a href="https:&#x2F;&#x2F;turboeshop.com&#x2F;fastestpageintheworld&#x2F;" rel="nofollow">https:&#x2F;&#x2F;turboeshop.com&#x2F;fastestpageintheworld&#x2F;</a> - kindly please check it out. And here is fastest page with Google Analytics: <a href="https:&#x2F;&#x2F;turboeshop.com&#x2F;newstackonly&#x2F;" rel="nofollow">https:&#x2F;&#x2F;turboeshop.com&#x2F;newstackonly&#x2F;</a>. 325 ms for fully loaded time CSS + images + HTML + JS + GA loaded + Measurement Protocol hits sent.<p>This is what fast website is: a) inline purged css; b) everything loaded from one domain, 100% cached. c)inlined js(vanilla + web component if you need one); d) inlined images up to 4kb; e) larger images loaded from cache from same domain. f) gtag.js and analytics.js -&gt; from cache; g) Measurement protocol hits sent from async proxy on edge. h) 100% cloudflare cache hits; i) Cloudflare workers for dynamic bits; That&#x27;s all what it takes. Don&#x27;t read articles- just make it fast, it&#x27;s really that simple :)<p>And as svelte was mentioned - if you want to improve a website that is bigger than your personal blog, you don&#x27;t use svelte, react, gatsby or any other of that breed as it&#x27;s impossible to do serious marketing with a website that&#x27;s hydrated (svelte&#x27;s web components is a wonderful thing though and is totally nice addition to marketing stack). I mean no insult to anyone with my strong opinions and would be glad to have discussions in comments.<p>UPD: Added note on Cloudflare &amp; Cloudflare workers.
评论 #25358832 未加载
评论 #25359185 未加载
评论 #25358961 未加载
评论 #25357889 未加载
评论 #25357952 未加载
评论 #25360842 未加载
评论 #25357891 未加载
评论 #25358511 未加载
评论 #25361472 未加载
评论 #25358114 未加载
评论 #25361707 未加载
评论 #25360243 未加载
评论 #25360791 未加载
评论 #25358360 未加载
myself248over 4 years ago
Interestingly enough, both the best and the worst experiences I&#x27;ve had on the web lately both belonged to tools-and-hardware suppliers: McMaster.com and HomeDepot.com, respectively.<p>Everything about McMaster-Carr&#x27;s site is built for speed and ease. I can literally have an idea, find the category, identify the specific part, and complete an order in about twenty seconds. (I&#x27;ve done this during a phone call. In the time it took my coworker to articulate the part he was looking for and finish his sentence, I was able to reply &quot;It&#x27;ll be here tomorrow.&quot;)<p>HomeDepot on the other hand sometimes takes 20 or 30 seconds to render the page to the point that I can see prices. I just checked with a page whose URL was already in my history, an unusually brisk 7 seconds. (Gag!) How do they screw it up so bad? I honestly don&#x27;t understand how a web page can take so long to do anything.
评论 #25356199 未加载
评论 #25356818 未加载
评论 #25358297 未加载
评论 #25356702 未加载
评论 #25356615 未加载
评论 #25356874 未加载
评论 #25357503 未加载
评论 #25358157 未加载
评论 #25357560 未加载
评论 #25358931 未加载
评论 #25356678 未加载
评论 #25357856 未加载
评论 #25357857 未加载
评论 #25359440 未加载
评论 #25357430 未加载
评论 #25361150 未加载
评论 #25357402 未加载
wruzaover 4 years ago
Worst sites are not slow, right. Worst sites are those that break visual contracts (cls in the article), and half of “fast” sites do that. You can see it when page is already loaded for few seconds, you scroll&#x2F;interact with it and then suddenly it behaves as if it was reloaded or jumps to another position right under your finger. You misclick on a link, go back, repeat. It does that not because a top banner loads, but on its own programming quirk. That’s annoying af and should be downranked to the bottom just like any snail-paced site.
评论 #25356562 未加载
评论 #25357728 未加载
评论 #25357534 未加载
zhte415over 4 years ago
When dealing with &#x27;troublesome&#x27; internet connections, or just in general:<p>Keep page load to less than 50k, or 100k if you&#x27;re feeling fancy.<p>Have a responsive design, unlike this website does, as a lot of people use phones, don&#x27;t have a PC or are not on a PC.<p>Don&#x27;t link everything under the cloud because you can - fonts, frameworks, huge pictures, because it makes your life easier. Self host everything, make it small.<p>And don&#x27;t use JavaScript to add an unnecessary layer to &#x27;manage&#x27; linking. Clicking on a link is expected behaviour. As are scroll bars. HTML links work perfectly fine and it degrades, nay I say disgraces, user experience.<p>These basic rubrics will ensure when serving things to &#x27;troublesome&#x27; connections, be that bandwidth, blocked 3rd party CDNs or latency, and will largely make sure life will be easier.
评论 #25357266 未加载
nicbouover 4 years ago
Unfortunately, the challenge seems to be &quot;how fast can we render a cookie notice that will waste 2-5 seconds and content that deliberately hides answers to keep the user on the site&quot;.<p>It&#x27;s pointless to make a website ridiculously fast before making the experience as user-hostile as permissible.
评论 #25357168 未加载
jcynixover 4 years ago
Fat, slow loading, unresponsive web pages? Maybe it&#x27;s time again to remember Maciej Ceglowski&#x27;s &quot;Web Directions 2015 Keynote&quot;:<p>The Website Obesity Crisis <a href="https:&#x2F;&#x2F;youtube.com&#x2F;watch?v=iYpl0QVCr6U" rel="nofollow">https:&#x2F;&#x2F;youtube.com&#x2F;watch?v=iYpl0QVCr6U</a>
评论 #25357296 未加载
anniltover 4 years ago
Not a web developer but I feel like text only&#x2F;small websites should be promoted. Unnecessary images on this page, weird backlink stuff between comments.. and this is a website about web development. Not looking good to me(I’m a dumb user) yet still better than many others.
forgotmypw17over 4 years ago
It&#x27;s important to Always Be Testing as a web dev.<p>There are thousands of different device-configuration-user possibilities, and for each one you get working, several more you&#x27;ll never know about will also have an easier time of using your site.<p>It gets kind of addicting, to be honest. The more browsers I try, the better I get at fixing various compatibility issues and removing all but the absolutely necessary from my pages.<p>I started out with a pretty minimal design and featureset to begin with, but I&#x27;ve been able to actually expand my compatibility matrix while also adding new features by coding minimally and using &quot;historic&quot; LCD JS for most things.<p>It&#x27;s shown me that a) each browser has its beauty and unique features and feel b) most browsers are totally valid access devices and I would like to support them all c) we&#x27;re at risk of losing all the knowledge of how to build a decent website, and I&#x27;d like to preserve that knowledge.
pcnixover 4 years ago
Disclaimer: I work at BrowserStack<p>We&#x27;ve built a tool to help measure speed with these sort of issues in mind - <a href="https:&#x2F;&#x2F;www.browserstack.com&#x2F;blog&#x2F;announcing-speedlab-test-website-speed&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.browserstack.com&#x2F;blog&#x2F;announcing-speedlab-test-w...</a>
eyelidlessnessover 4 years ago
What’s the acronym for “it took me three seconds after page load to read any of this because the designer either neglected or aggressively shaved off a media query and I had to wait to enable reader view”?<p>Edit: I’m not trying to overly criticize the page. I hope this is taken in the spirit of the article. A few extra bytes down the wire would’ve made that a much faster and lower friction experience for me.
评论 #25355855 未加载
ghowardover 4 years ago
A lot of the comments here are saying that js and css should be inlined to make loading faster. I disagree.<p>They should be <i>small</i> (or <i>nonexistent</i> in the case of js), but I believe they should be separate, and proper caching enabled. This means that the first page load may be milliseconds to a second longer, but any other page loads after will be instant since those resources will be pulled from cache.<p>Note: I am assuming that the web page under load is really small, 50 kb or less.<p>I welcome anyone who disagrees to say so. I acknowledge that I could still be wrong.<p>Edit: spelling.
评论 #25361794 未加载
giantrobotover 4 years ago
A fast web page is not mythical. It&#x27;s also not some unknowable or untestable thing. If you make a page of X bytes, Y number of resources of Z bytes, you can pretty easily calculate load time ranges for a variety of network conditions.<p>You&#x27;re never going to be able to overcome physics so you aren&#x27;t going to somehow make a ten megabyte JavaScript monstrosity load instantly over a spotty 3G connection in the middle of nowhere.<p>What you can do is give some worst case connection the best chance you can to successfully load your page.<p>Instead of building it all in the DOM with JavaScript send the client the damn HTML. Send some baseline CSS in a style tag. Use CSS patterns instead of big header images or backgrounds. Use box&#x2F;text shadows to make elements stand out without images. Bundle as much as possible (CSS sprites, JS bundles, etc) to cut down on external resource requests. Minify and compress the shit out of everything. Include a viewport meta tag.<p>It&#x27;s not <i>that</i> difficult to have a good looking and functional page that&#x27;s literally a single HTML page. A single compressed resource that has everything it needs in a single load.<p>We&#x27;re actually in an era where the average web browser is extremely capable and isn&#x27;t some version of IE. Even super low end Android phones have a very capable browser installed by default. You&#x27;ve got HTML5 and CSS3 along with at least ES6 everywhere. The same is true on the desktop in most areas.<p>There&#x27;s also just <i>so much</i> shit you <i>don&#x27;t</i> need in most pages. Far too many people treat a web <i>page</i> like it&#x27;s some full blown mini OS. There&#x27;s also a seeming generation of web devs that have no idea what browsers do and think they need to include the kitchen sink to display some text or load resources. You definitely don&#x27;t need to override scroll events.<p>You can never make a universally fast page because you don&#x27;t control the user&#x27;s environment. But you can make pages and fast and as light as possible so they&#x27;re not wasting anyone&#x27;s time or battery. You can also focus on uncached loads because honestly that&#x27;s going to be a majority of visits.
评论 #25357088 未加载
评论 #25356743 未加载
评论 #25356694 未加载
JyrkiAlakuijalaover 4 years ago
Every web page should load in 200 ms or less. There is no deep technical reason for humans to wait for computers for simple loading of data. We can get this right.
divbzeroover 4 years ago
It’s <i>a propos</i> that this article took ~10 seconds to load for me the first time, but &lt;1 second the second time and &lt;1 second again with the cache cleared. Unfortunately I didn’t have dev tools open to figure out why.
评论 #25356148 未加载
评论 #25356362 未加载
throwaway_pdp09over 4 years ago
Fast web pages unquestionably exist. This just spends a lot of text (and 2 pointless images, as noted by the top comment in that article) to pretend they don&#x27;t. Now there&#x27;s a reason for trying to fudge the question but it&#x27;s not clear why. Someone&#x27;s up to something, pushing something, selling something.
scottbucksover 4 years ago
I&#x27;m having a bloody nightmare with my blog, <a href="https:&#x2F;&#x2F;www.thedetechtor.com" rel="nofollow">https:&#x2F;&#x2F;www.thedetechtor.com</a>, must be something to do with wix but it takes for ever to load, going to have to migrate to Wordpress
评论 #25357568 未加载
评论 #25361088 未加载
superjanover 4 years ago
What I like about this article is that discusses the issue of layout changes during load. I can not stand websites moving text around while I’m reading. Part of the blame is on browsers: why bother to render a page before all cached resourses (fonts) are loaded? But sites should insert image&#x2F;ad placeholders af the appropriate size.
mouzoguover 4 years ago
Whatever happened to the idea of progressive enhancement?<p>I know it&#x27;s a often a matter of limited time and resources but honestly I would take a bet that more than 50% of the websites you could visit would be unusable or at least functionally unusable without JavaScript.
jcimsover 4 years ago
I&#x27;m sure lots of people know this but I had no idea. Chrome has &#x27;lighthouse&#x27; built in. Seems to be a reasonably thorough client-side site usability&#x2F;responsiveness report tool.<p>Hit F12 and go to the Lighthouse tab(?) in dev tools. Very cool!
rob74over 4 years ago
I know at least one non-mythical fast website: <a href="https:&#x2F;&#x2F;motherfuckingwebsite.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;motherfuckingwebsite.com&#x2F;</a>