TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Get Out of My Head

53 点作者 edent大约 1 个月前

11 条评论

esperent大约 1 个月前
This website is missing a very important piece of information: why the hell you&#x27;d go to the trouble of making these changes.<p>It just makes this vague and useless statement:<p>&gt; Make faster, more accessible, more environmentally friendly websites<p>And nothing else that I could see to back that up.<p>Exactly how much does it speed up the website by removing a couple of lines of favicon code from the head? My guess is <i>extremely</i> close to zero. Environmental impact of zero. Flick your lightbulb off for five seconds for a similar benefit, then pat yourself on the back, well done, you just did your bit to save the planet for the next month at least.<p>Without figures to back it up, this feels like a wannabe influencer padding their resume and wasting our time.
jihadjihad大约 1 个月前
&gt; more environmentally friendly websites<p>I guess a few drops in the ocean are still drops overall, but nuking the link tags for favicons feels like hoping that wiping the dew off a dinosaur&#x27;s brow will change the reading on the scale, when the dinosaur&#x27;s bulk is mostly JavaScript.
评论 #43705023 未加载
评论 #43709176 未加载
_kush大约 1 个月前
Do these tags really weigh down the webpages? I don’t see any noticeable differences in loading times on websites with these tags vs websites with lesser or no tags.
评论 #43704961 未加载
评论 #43704956 未加载
lxgr大约 1 个月前
&gt; You don&#x27;t need this code!<p>&gt; By default, all browsers look for a file &#x2F;favicon.ico in a site&#x27;s root directory.<p>That must be a drop in the ocean compared to all the requests for non-existent favicons thanks to this behavior... (Which can be prevented via [2], apparently!)<p>&gt; 180x180 is the largest icon size any iOS device requires. Other devices will downscale the image to fit.<p>Using more data (which uses both energy and is often still paid!) and some compute resources to downscale, which wears out the battery of mobile devices, requiring a swap or incentivizing people to upgrade sooner than they otherwise would. Better reason about the externalities thoroughly when throwing out vague statements like &quot;more environmentally friendly websites&quot;!<p>By the same author: &quot;why lowercase letters save data&quot; [1], &quot;Show you how I came to the conclusion that title case on hacker news emits the equivalent yearly carbon as a car driving the width of Sri Lanka.&quot; – featuring sub-headlines rendered using some squiggly font effect powered by an SVG filter that probably uses enough collective renderer CPU&#x2F;GPU cycles to drive the same car to the moon and back.<p>I get and applaud the desire to make the world a better place. But something that people seem to overlook too often with short-sighted initiatives such as this is that one of the most finite resources is human attention. Making somebody feel good about having spent time and effort to implement symbolic&#x2F;effectively useless measures means that that time and effort won&#x27;t be available elsewhere. Efficiency matters even in saving the world. (On the other hand, I guess this stunt did get me thinking, proving once again that one of the most efficient ways to find a better solution is to put a wrong statement on the internet :)<p>[1] <a href="https:&#x2F;&#x2F;endtimes.dev&#x2F;why-lowercase-letters-save-data&#x2F;" rel="nofollow">https:&#x2F;&#x2F;endtimes.dev&#x2F;why-lowercase-letters-save-data&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43705304">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43705304</a>
评论 #43711037 未加载
ikerino大约 1 个月前
I&#x27;m curious about the &quot;environmentally friendly&quot; promise. How meaningful&#x2F;measurable would removing these tags be?<p>I think there&#x27;s something to be said for efficiency&#x2F;no wasted bytes, but better for the environment feels like a major stretch&#x2F;beside the point...<p>It&#x27;s like saying &quot;if we all cut out unnecessary adjectives from our speech, it would save 100k gallons of water per day.&quot; Could that be true, maybe? But that&#x27;s not the thing that makes brevity meaningful&#x2F;important.<p>(or: Tongue-in-cheek joke that went over my &lt;head&gt;?)
评论 #43704976 未加载
butler14大约 1 个月前
Honestly if you&#x27;re removing meta tags from the html of a page for page speed&#x2F;server space&#x2F;bandwidth&#x2F;environmental benefits -- it&#x27;s time to do something else<p>I hate FB&#x2F;twitter as much as the next tech-savvy person but accept that my users use those platforms and it&#x27;s good for my website to show up optimally when they do
ceving大约 1 个月前
I like this favicon:<p><pre><code> &lt;link rel=&quot;icon&quot; href=&quot;data:image&#x2F;png;base64,iVBORw0KGgo=&quot;&gt;</code></pre>
评论 #43705366 未加载
评论 #43706259 未加载
zamadatix大约 1 个月前
It&#x27;s interesting the favicon section recommends removing a few bytes of text in favor of using the default favicon location and then follows that up by recommending packing every scale of the icon into that file on the basis the overhead of the image data is irrelevantly small.
xnx大约 1 个月前
I would think of this type of &quot;optimization&quot; as benign, but I think it&#x27;s worse than that because it distracts and takes time and attention from what to do instead like using Lighthouse.<p>To the author&#x27;s credit, that page gets a perfect, 100, Lighthouse performance score.
skerit大约 1 个月前
The &quot;meta tags&quot; section has some weird opinions, but also a lot of interesting information.
croes大约 1 个月前
Less JS would have a greater effect