了解 Firefox 中何时发生预取

发布于 2025-01-08 04:34:57 字数 87 浏览 0 评论 0原文

有什么方法可以查看 Firefox 中何时发生预取吗? Chrome 中有一个内部任务管理器,可以显示网站何时在后台预渲染,Firefox 预取有类似的功能吗?

Is there any way to see when prefetching is happening in Firefox? In Chrome there is an internal task manager which shows when websites is being pre-rendered in background is there anything similar for Firefox pre-fetching?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

安穩 2025-01-15 04:34:57

确认 Firefox 已预取资源的一种方法是加载触发预取的页面,然后浏览到 about:cache 并单击 <代码>列出缓存条目。

如果您在执行此操作之前清除缓存,那么这些资源是否已成功预取将非常明显。

One way to confirm that a resource has been prefetched by Firefox is to load the page that triggers the prefetching and then take a look at the contents of the browser cache by browsing to about:cache and clicking on List Cache Entries.

If you clear your cache just before you do that, it will be pretty obvious whether or not these resources were prefetched successfully.

以可爱出名 2025-01-15 04:34:57

Firefox 不会预取整个网站;它仅预取声明为需要预取或解析为页面一部分的特定资源。

尽管可以添加预取,但无法查看预取何时发生。有什么用例?

Firefox doesn't prefetch entire sites; it only prefetches particular resources that are declared as needing prefetching or are parsed as part of a page.

There is no way to see when the prefetching is happening, though one could be added. What's the use case?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文