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.

Can You Afford It? Real-World Web Performance Budgets

214 pointsby josephscottover 7 years ago

16 comments

virmundiover 7 years ago
Do we need all this JS? I’m starting to look back at classic web development where you had a server rendered mvc style app. There was a controller and templates populated on the server. Every page was a full rerender, but it was small html. Proper caching kept the minimal CSS and images on the client for a regular session under 30 minutes. This seems better.<p>I know we switched because front end experts told us that users found the full refreshes annoying. They said that users really wanted native desktop like seamless change pages. Never did I see proof of these claimed. Is the modern JS based design our cubicle moment? Did we get suckered in by experts making productivity claims with nothing to back them up?
评论 #15573998 未加载
评论 #15573912 未加载
评论 #15573690 未加载
评论 #15574686 未加载
评论 #15573584 未加载
评论 #15573718 未加载
评论 #15573577 未加载
评论 #15574480 未加载
评论 #15575247 未加载
评论 #15573649 未加载
评论 #15574696 未加载
评论 #15575374 未加载
评论 #15573668 未加载
评论 #15574966 未加载
评论 #15575039 未加载
评论 #15574239 未加载
评论 #15574009 未加载
评论 #15573729 未加载
评论 #15574672 未加载
评论 #15575860 未加载
评论 #15576258 未加载
评论 #15574608 未加载
评论 #15573497 未加载
评论 #15573521 未加载
saas_co_deover 7 years ago
&gt; 45% of mobile connections occur over 2G worldwide &gt; 75% of of connections occur on either 2G or 3G<p>this is so important. if you want growth you need to be making a product for growing markets.
评论 #15574677 未加载
raverbashingover 7 years ago
Meanwhile, HN loads like a charm and time to interactive seems to be less than 0.5s<p>Seems like that&#x27;s what happens when you are too deep in the js bog, and you forget what is below the thick js cover
评论 #15574268 未加载
评论 #15574366 未加载
评论 #15574206 未加载
idlewordsover 7 years ago
It&#x27;s 2017. It&#x27;s shameful that our expectations for web speed should be this low.
评论 #15573755 未加载
tboyd47over 7 years ago
Front-end developers could solve all of this by just learning the base technologies of HTML, HTTP, CSS, and JS really well and ignoring everything else.<p>We&#x27;re at a beautiful point in web development where browsers are finally unified on open standards, and we&#x27;re all too locked into these outdated JS frameworks to take advantage of it.
评论 #15575666 未加载
z3t4over 7 years ago
It&#x27;s nice of you to make your web presence work for someone with 400Kbps link with a 400ms round-trip-time (“RTT”), while you&#x27;re at it, also make sure it works with JavaScript turned off! And browsers with limited CSS support. And is readable on a terminal browser. And 600x400 px resolution.
justin_dover 7 years ago
It&#x27;s remarkable how much js gets loaded onto a page (mainly due to libraries) vs. how much of its functions are needed for what the web developer is trying to do. There just is not a whole lot of use cases for the big libraries unless you&#x27;re doing something really intensive like a drawing app.
评论 #15574565 未加载
评论 #15573702 未加载
olegkikinover 7 years ago
His argument is based on an example where he puts JS in &lt;head&gt;, when it&#x27;s been a recommendation for ages to put JS at the very end of &lt;body&gt;.
评论 #15574678 未加载
评论 #15580777 未加载
caseymarquisover 7 years ago
I&#x27;m sure there are niches out there where complex web apps are best built without an SPA framework, but use the right tool for the job! If I&#x27;m writing an embedded interrupt routine, I don&#x27;t use slow clunky C, I use assembly. If I&#x27;m writing a complex web application, I use an SPA framework like Vue. If I&#x27;m delivering static content, I use minified html and css.<p>Everything comes with a tradeoff. If you pick the wrong tool, it&#x27;s a big headache.<p>Learn to use all the tools.
评论 #15574968 未加载
fastballover 7 years ago
Most of the requirements for Google&#x27;s AMP project help bring down TTI by a large margin if you follow them as well.<p><a href="https:&#x2F;&#x2F;www.ampproject.org&#x2F;docs&#x2F;tutorials&#x2F;create" rel="nofollow">https:&#x2F;&#x2F;www.ampproject.org&#x2F;docs&#x2F;tutorials&#x2F;create</a>
osrecover 7 years ago
I think the article makes some valid points, but it&#x27;s important to remember that PWAs are just getting going. The existing SPA frameworks are still a little crude at the moment, but there is definite progress. For my own app (<a href="https:&#x2F;&#x2F;usebx.com" rel="nofollow">https:&#x2F;&#x2F;usebx.com</a>), I eventually ended up writing my own front end framework, as existing frameworks at the time felt rather bloated. Now, however, things are starting to look better with the likes of Vue.js etc coming on the scene. I also feel that PWA development will explode once Apple ships service workers with Safari, and that will bring along with it even more motivation to innovate in this space.
评论 #15573662 未加载
JepZover 7 years ago
Actually, I think it is more important to be aware of the issues and handle them than to set strict size limits. For example, a few years ago I lead a redesign project for a mobile web shop and the designer told me he was not allowed to include icons as our CIO had set the limit of the page size to 100k (including all images).<p>By the end of the project the page size was about 200k, but when the sales were ~20% higher (multi million $ shop) nobody asked about the size limit anymore.<p>So yeah, page size&#x2F;load time is important, but please keep reflecting what you are doing. The best load times are no good, if (as a result) the UX is poor.
deepakkarkiover 7 years ago
It&#x27;s also funny how many of my friends use $TrendyJSFramework for a portfolio site! Personally prefer to have all my content statically served unless I&#x27;m building some sort of an interactive single page application.<p>I run <a href="https:&#x2F;&#x2F;discoverdev.io" rel="nofollow">https:&#x2F;&#x2F;discoverdev.io</a> for which I wrote my own SSG framework in python+jinja, I spit out html and push it to netlify&#x27;s CDN network. It&#x27;s smooth, I don&#x27;t have to worry about scaling and it works like a charm! (I could still do a lot of optimisation wrt image compression and minification though)
emp_over 7 years ago
Just pushed live an app today that I had to cave and add babylon-polyfill so it would work in IE 11 after trying to polyfill a dozen missing es6 runtime features from various sources.<p>That made the final JS output 25% larger, a 90kb increase from the polyfill library alone, so here&#x27;s a serious optimization waiting to happen (the natural dying of an older browser).
评论 #15574347 未加载
评论 #15576024 未加载
cvshaneover 7 years ago
How come no one monitors their speed as much as they should?<p>SpeedCurve and Calibre are great options listed in that article. Also suggest MachMetrics <a href="https:&#x2F;&#x2F;www.machmetrics.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.machmetrics.com&#x2F;</a>
swyxover 7 years ago
i cut my personal site&#x27;s TTI by 62% after reading this. I just was lazy about performance when there were some real easy wins. i do wish for more guidance on how to do PRPL in React (without necessarily doing full Next.js which is too opinionated for some of the stuff I want to do)