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.

Show HN: PerfAudit – Performance audit of caniuse.com

38 pointsby chinchangabout 10 years ago

3 comments

strommenabout 10 years ago
Cool to see someone else doing this.<p>If I was doing this myself, I&#x27;d suggest working on js.php. It&#x27;s taking over 1s to get that single file, which appears [1] cacheable. An nginx reverse proxy or something comparable would make this way faster. If there are uncacheable parts of this file, then those could be separated out.<p>It is interesting that the script is loaded async with &quot;defer&quot;, so the page is functional (but not ajax-y) before it&#x27;s loaded. So the long load time isn&#x27;t quite so bad. But I&#x27;d be interested to hear why the whole file isn&#x27;t just cached.<p>Also, for a single-page website like this, where all navigations are loaded with AJAX, I&#x27;d suggest inlining all the CSS and JS.<p>Finally, I&#x27;d think about making the entire page itself cached. There doesn&#x27;t appear to be any sort of login, so it&#x27;s probably feasible. But I&#x27;m not sure how the Settings stuff is implemented; if that&#x27;s persisted server-side then caching the page wouldn&#x27;t work.<p>[1] The Cache-Control header specifies a max-age but not public&#x2F;private. I honestly don&#x27;t even know what semantics this has - but it&#x27;s probably best to make it explicit.
评论 #9171862 未加载
axemclionabout 10 years ago
You could also try <a href="http://perfmonkey.com" rel="nofollow">http:&#x2F;&#x2F;perfmonkey.com</a> for automating these perf audits. If uses the same tools used by Chromium for finding perf telemetry - <a href="http://axemclion.github.com/browser-perf" rel="nofollow">http:&#x2F;&#x2F;axemclion.github.com&#x2F;browser-perf</a>.<p>Here is a run for canIuse using the automated tool - <a href="http://www.perfmonkey.com/#/trynow/results/travis/53663113" rel="nofollow">http:&#x2F;&#x2F;www.perfmonkey.com&#x2F;#&#x2F;trynow&#x2F;results&#x2F;travis&#x2F;53663113</a>
评论 #9176710 未加载
roothackerabout 10 years ago
Liked the concept of performance auditing websites, are you guys working as consultants?
评论 #9170998 未加载