惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
News and Events Feed by Topic
GbyAI
GbyAI
博客园 - Franky
宝玉的分享
宝玉的分享
Blog — PlanetScale
Blog — PlanetScale
Google DeepMind News
Google DeepMind News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
博客园 - 【当耐特】
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Schneier on Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Project Zero
Project Zero
量子位
M
MIT News - Artificial intelligence
Stack Overflow Blog
Stack Overflow Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
美团技术团队
Attack and Defense Labs
Attack and Defense Labs
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Blog of Author Tim Ferriss
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
P
Proofpoint News Feed
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
S
SegmentFault 最新的问题
L
LINUX DO - 最新话题
Simon Willison's Weblog
Simon Willison's Weblog
爱范儿
爱范儿
博客园 - 聂微东
A
About on SuperTechFans
PCI Perspectives
PCI Perspectives
D
Docker

Microsoft Edge Blog

New in Edge for developers – Style layout gaps, improve keyboard accessibility and migrate your PWA to a new origin Faster updates, enterprise-friendly schedule: the new Microsoft Edge release cycle Expanding on‑device AI in Microsoft Edge: New models and APIs for the web New in Edge for Business: AI for work, safe from day one New updates to Edge across desktop and mobile Engineering secure passkey sync in Microsoft Password Manager Protect your enterprise from shadow AI and more: Announcements at RSAC 2026 Making keyboard navigation effortless Microsoft Edge and Interop 2026
Monitor and improve your web app’s load performance
Microsoft Edge Blog · 2026-03-18 · via Microsoft Edge Blog

Today, large web applications are often assembled from many independent pieces, which all load their own data and resources. When all these pieces compete for the same network connection, congestion can build up and the user experience can suffer.

Illustration showing multiple pieces of a webapp, 3rd-party content, images, analytics, data, etc. all going through a single Network pipe, and, on the other side, a webpage with a part of it still loading.

To address this problem, we’re excited to introduce a new feature which web developers can start testing in Microsoft Edge today: Network Efficiency Guardrails.

If you’re a web developer, improving the load performance of your app starts with knowing what to focus on first. However, when your web app embeds a mix of first-party and third-party content from different sources, optimizing performance depends on each of these pieces—not just on what you built. That’s why identifying the resources that need to be optimized to improve your app’s load time is crucial, and that’s exactly what the Network Efficiency Guardrails feature does.

So, if you’re working on an app that embeds content, read on to learn more about Network Efficiency Guardrails and start using them.

Detecting bad resource-loading patterns

Based on our own experience working with large web-based applications, we know that there are certain resource-loading patterns which have a disproportionate impact on performance. For example:

  • Very large images
  • Uncompressed resources
  • Large data: URLs

With the Network Efficiency Guardrails feature, you can ask the browser to monitor your app’s network resource usage. Once network monitoring starts, the browser automatically identifies inefficient resource-loading patterns and reports them to you. You can then use this information to optimize your app for all your users.

App loads resources, then violations are reported, then the developer optimizes their site, then the app loads faster.

In practice, you first opt into the feature by setting a Document Policy. Once you’ve done that, the offending loading patterns which the browser detects are reported as policy violations through the Reporting API, a web platform mechanism that lets you send structured reports back to your server when something notable happens at runtime.

What gets reported

Currently, when you opt into the Network Efficiency Guardrails feature, Microsoft Edge will use the following criteria to identify policy violations:

  • Text-based resources that are not HTTP-compressed.
  • Images larger than 200 kB.
  • data: URLs larger than 100 kB.

These are our initial criteria, and we believe they are effective at flagging resource usage patterns that are atypical for well‑performing apps.

We chose these criteria based on aggregate, real‑world data, established industry best practices, and Web Almanac findings. To learn more about how these values were chosen, you can read about it in our feature explainer document. We expect to make changes to these values as we continue to gather more feedback and data.

Try Network Efficiency Guardrails today

The feature is available in Microsoft Edge, starting with version 146. To try it, you’ll first need to enable it:

  1. In Edge, go to edge://flags.
  2. Type “Experimental Web Platform features” in the Search flags text box at the top.
  3. Under the Experimental Web Platform features section, select Enabled in the dropdown menu.
  4. Restart Edge.

Enable the document policy on your site

Next, opt into the feature by enabling the document policy on your site, which you can do in either of these two ways:

  • Set the document policy by sending the following HTTP response headers from your server:

    Document-Policy:network-efficiency-guardrails; report-to=neg-endpoint
    Reporting-Endpoints: neg-endpoint="/neg-reporting/"

    The report-to endpoint name and value are not important yet. They’re only required so you can start seeing reports, but you don’t need to have the server endpoint running yet.

  • Or set the above response headers by creating a local override in DevTools instead. To learn how to do this, see Override HTTP response headers.

    This can be helpful to quickly get started since you don’t have to modify your server code.

View the reported violations

Now that you have everything set up, you can use your app as normal, and the browser will start reporting problematic network usage patterns to you. You can view the reported violations either in DevTools, or on your server.

Using DevTools for this is a simple way to get started. As violations get detected, they’ll appear in the Console tool as error messages:

The Console tool in Microsoft Edge DevTools, showing a reported violation message saying: Document policy violation: resource compression is required.

And you can also see them in the Application tool, under the Reporting API section, where you can find more details about each report:

The Application tool in Microsoft Edge DevTools, showing the Reporting API data, which contains one report about a resource that lacks compression. The additional data provides the link to the source file which lacks compression.

Viewing the reports in DevTools is a great way to get started. However, if you want to use Network Efficiency Guardrails in production, and receive real reports from your users’ devices, you’ll also need to configure a reporting endpoint on your server.

Configure a reporting server endpoint

To collect reports in production, use the report-to field in the Document-Policy header, giving it the name of your choosing. And then specify the value for this server endpoint in Reporting-Endpoints:

Document-Policy: network-efficiency-guardrails; report-to=neg-endpoint
Reporting-Endpoints: neg-endpoint="/neg-reporting/"

Now, configure the /neg-reporting/ endpoint on your server and make sure it can receive the reports, as well as accept preflight requests if you’re using a cross-origin endpoint.

To learn more, read the Reporting API documentation at MDN, and our feature explainer.

View reports client-side

You can also retrieve violation reports on the client with JavaScript code. The reports are exposed to the document where they got created, through the Reporting client-side API.

Use the ReportingObserver interface to access these reports as they are raised, and look for reports that have ReportBody.featureId === "network-efficiency-guardrails".

Let us know what you think

The Network Efficiency Guardrails feature is in its early stages of development, and we’d love you to try it and share your feedback with us.

Learning about your app’s specific network usage patterns can help us design the right API for you.

We’re actively exploring the following open questions, so now is a great opportunity to try the feature and help us improve it:

  • Fine-tuning existing guardrails: help us better detect the network usage patterns based on your data and feedback.
  • Adding new guardrails: are there additional patterns that we should be considering?
  • Cross-frame reporting: how should a parent frame monitor a child frame? Should bidirectional monitoring be possible? How should guardrails be enforced on embedded frames?

Checkout out the Network Efficiency Guardrails explainer and let us know your feedback by opening a new issue.