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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

About rel=noopener (2016)

108 点作者 edance超过 7 年前

7 条评论

billpg超过 7 年前
Shouldn&#x27;t this behavior be explicitly enabled, defaulting to disallowing it?<p>Or do I need to tag all my links with a long series of &quot;Don&#x27;t allow this crazy thing&quot;, &quot;Or that other thing&quot;, etc.
评论 #16230035 未加载
评论 #16230188 未加载
MrRadar超过 7 年前
There&#x27;s a Firefox extension to add the rel=noopener attribute to all links (except ones to the same domain): <a href="https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;dont-touch-my-tabs&#x2F;?src=userprofile" rel="nofollow">https:&#x2F;&#x2F;addons.mozilla.org&#x2F;en-US&#x2F;firefox&#x2F;addon&#x2F;dont-touch-my...</a>
评论 #16233500 未加载
epmatsw超过 7 年前
There’s also a disown-opener CSP directive that’s hopefully going to be implemented at some point. Should help take care of this.
评论 #16231764 未加载
davidmurdoch超过 7 年前
My totally unmeasured hunch is that there is a downside to using noopener: it could make the new page that is being opened take slightly longer, since it now needs to spool up another process&#x2F;thread&#x2F;sandbox&#x2F;whatever instead of piggy backing off the existing page&#x27;s.<p>More about the performance &quot;benefit&quot; here: <a href="https:&#x2F;&#x2F;jakearchibald.com&#x2F;2016&#x2F;performance-benefits-of-rel-noopener&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jakearchibald.com&#x2F;2016&#x2F;performance-benefits-of-rel-n...</a>
评论 #16230562 未加载
评论 #16233690 未加载
eddieD401超过 7 年前
Excellent, concise and with solid examples too! I can&#x27;t see any reason to not expect this as the default behavior, especially in today&#x27;s hostile climate. It almost seems as if the standards writers have a stake in making sure there is always a place in the picnic basket for an unseen finger...
Retr0spectrum超过 7 年前
Why has this post been flagged?
评论 #16230778 未加载
jarofgreen超过 7 年前
I think this is an older article?* Any updates on support?<p>* I also don&#x27;t understand how this is being served. If you go to <a href="https:&#x2F;&#x2F;github.com&#x2F;mathiasbynens" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mathiasbynens</a> there should be a repository called mathiasbynens.github.io right? But I can&#x27;t find it.
评论 #16230127 未加载
评论 #16232961 未加载