menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Microsoft News

>

Request fo...
source image

Windows

4w

read

93

img
dot

Image Credit: Windows

Request for developer feedback: controlling the performance of embedded web content

  • The proposed feature aims to give developers more control over the performance impact of embedded web content by introducing new DocumentPolicy configurations and reporting violations to the embedder.
  • Developers can apply different document policies such as 'basic', 'early-script', 'globals', and 'script' to control the performance impact of embedded content.
  • The 'basic' policy includes constraints on oversized assets and uncompressed resources, while the 'early-script' policy focuses on optimizing JavaScript before user interaction.
  • The 'globals' policy sets limits on media and system resource usage, while the 'script' policy enforces restrictions on JavaScript during and post-load.
  • Violations will be reported through the Reporting API, allowing developers to address performance issues and optimize user experiences accordingly.
  • An example scenario illustrates how developers can align with content producers and apply Document Policy directives to minimize the performance impact of embedded content.
  • Developers can set policies at the document level using headers or individually per iframe to enforce performance constraints.
  • Feedback is welcomed on the proposal to enhance app performance and user experience, with developers encouraged to share thoughts and suggestions for shaping the API.

Read Full Article

like

5 Likes

For uninterrupted reading, download the app