Boosting Embedded Web Performance: A Call for Developer Feedback

Share

Key Points:

  • Microsoft proposes a new feature to give developers more control over the performance of their apps and websites by constraining the performance impact of embedded content.
  • The feature aims to make it easy for developers to control the performance impact of embedded content and to report violations to the embedder, so they can take corrective action.
  • The feature will introduce new Document Policy configurations to help developers apply performance constraints to embedded content, including limits on oversized assets, JavaScript resources, and system resource usage.

Microsoft has announced a new feature proposal that aims to give developers more control over the performance of their apps and websites by constraining the performance impact of embedded content. The feature is designed to make it easy for developers to control the performance impact of embedded content and to report violations to the embedder, so they can take corrective action.

The new feature will introduce new Document Policy configurations that will help developers apply performance constraints to embedded content. These configurations will include limits on oversized assets, JavaScript resources, and system resource usage, among others. The feature will also provide a Reporting API to report any violations, allowing developers to take swift action to improve the performance of their apps and websites.

The proposal is divided into four categories: basic, early-script, globals, and script. The basic category encompasses fundamental web development best practices to ensure websites are optimized for performance across various environments. The early-script category focuses on JavaScript development best practices that can be done to minimize performance issues before user interaction begins. The globals category entails imposing limits on overall media and system resource usage during interactions. The script category enforces restrictions on complex JavaScript code to further enhance performance.

To illustrate the feature, Microsoft provides an example of a complex app that embeds real-time content from different sources through iframes. The app has a weather widget that contains animations or high-definition videos that autoplay for different weather conditions without user interaction. To minimize the performance impact of the embedded content, the developer of the host application aligns with the producers of the embedded content on guidelines and best practices for loading the iframes. The host app serves its main document with Document Policy directives to enforce on the embedded content.

Developers can apply these policies individually or combine them to achieve the desired level of performance constraint. For example, a developer can set the basic policy to limit oversized assets and require assets to be zipped, or the early-script policy to ensure that video and animations pause when the user is not interacting with them.

The company is seeking feedback on this proposal and encourages developers to read the explainer and share their thoughts by opening a new issue on the repository. The goal is to create a more efficient and effective way for developers to manage the performance of their apps and websites, ultimately improving the overall user experience.

Read the rest: Source Link

You might also like: Try AutoCAD 2025 for Windows, best free FTP Clients on Windows & browse Windows games to download.
Remember to like our facebook and our twitter @WindowsMode for a chance to win a free Surface every month.


Discover more from Windows Mode

Subscribe to get the latest posts sent to your email.