diff options
Diffstat (limited to 'files/fr/web/performance/index.md')
-rw-r--r-- | files/fr/web/performance/index.md | 487 |
1 files changed, 227 insertions, 260 deletions
diff --git a/files/fr/web/performance/index.md b/files/fr/web/performance/index.md index 074f7b7010..b76ba4f995 100644 --- a/files/fr/web/performance/index.md +++ b/files/fr/web/performance/index.md @@ -3,263 +3,230 @@ title: Web Performance slug: Web/Performance translation_of: Web/Performance --- -<p>Translation in progress</p> - -<p>Web performance is the objective measurements and the perceived user experience of load time and runtime. Web performance is how long a site takes to load, become interactive and responsive, and how smooth the content is during user interactions - is the scrolling smooth? are buttons clickable? Are pop-ups quick to load and display, and do they animate smoothly as they do so? Web performance includes both objective measurements like time to load, frames per second, and time to become interactive, and subjective experiences of how long it felt like it took the content to load.</p> - -<p>The longer it takes for a site to respond, the more users will abandon the site. It is important to minimize the loading and response times and add additional features to conceal latency by making the experience as available and interactive as possible, as soon as possible, while asynchronously loading in the longer tail parts of the experience.</p> - -<p>There are tools, APIs, and best practices that help us measure and improve web performance. We cover them in this section:</p> - -<h2 id="In_this_section">In this section</h2> - -<p>{{LandingPageListSubpages}}</p> - -<h2 id="Selected_tutorials">Selected tutorials</h2> - -<p>The MDN <a href="/fr/docs/Learn/Performance">Web Performance Learning Area</a> contains modern, up-to-date tutorials covering Performance essentials:</p> - -<dl> - <dt><a href="/fr/docs/Learn/Performance/What_is_web_performance">What is web performance</a></dt> - <dd>This article starts the module off with a good look at what Performance actually is — this includes the tools, metrics, APIs, networks, and groups of people we need to consider when thinking about performance, and how we can make Performance part of our web development workflow.</dd> - <dt><a href="/fr/docs/Learn/Performance/web_performance_basics">Web Performance Basics</a></dt> - <dd>In addition to the front-end components of HTML, CSS, JavaScript, and media files, there are features that can make applications slower and features that can make applications subjectively and objectively faster. There are many APIs, Developer Tools, best practices and bad practices relating to web performance. Here we'll introduce many of these features at the basic level and provide links to deeper dives to improve performance for each topic.</dd> - <dt><a href="/fr/docs/Learn/Performance/perceived_performance">How do users perceive performance?</a></dt> - <dd> - <p>More important than how fast your website is in milliseconds, is how fast do your users perceive your site to be. Page load time, idling, responsiveness to user interaction, and the smoothness of scrolling and other animations impact these perceptions. In this article, we discuss the various loading metrics, animation, and responsiveness metrics, along with best practices to improve user perception, if not the actual timings themselves.</p> - </dd> - <dt><a href="/fr/docs/Learn/Performance/Multimedia">Multimedia: Images and Video</a></dt> - <dd>Frequently, media optimization is the lowest hanging fruit of web performance. Serving different media files based on each user agent's capability, size and pixel density is possible. Additional tips, like removing audio tracks from background images, can improve performance even further. In this article, we discuss the impact video, audio, and image content has on performance, and the methods to ensure that impact is as minimal as possible.</dd> - <dt><a href="/fr/docs/Learn/Performance/CSS_performance">CSS performance features</a></dt> - <dd>CSS may be a less important optimization focus for improved performance, but there are some CSS features that impact performance more than others. In this article, we look at some CSS properties that impact performance and suggested ways of handling styles to ensure performance is not negatively impacted.</dd> -</dl> - -<h2>Using Performance APIs</h2> - -<dl> - <dt><a href="/fr/docs/Web/API/Performance_API/Using_the_Performance_API">Performance API</a></dt> - <dd>This guide describes how to use the <a href="/fr/docs/Web/API/Performance" title="The Performance interface provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API."><code>Performance</code></a> interfaces that are defined in the <a class="external external-icon" href="https://w3c.github.io/hr-time/" rel="noopener">High-Resolution Time</a> standard.</dd> - <dt><a href="/fr/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API">Resource Timing API</a></dt> - <dd><a href="/fr/docs/Web/API/Resource_Timing_API">Resource loading and timing</a> the loading of those resources, including managing the resource buffer and coping with CORS</dd> - <dt><a href="/fr/docs/Web/API/Performance_Timeline/Using_Performance_Timeline">The performance timeline</a></dt> - <dd>The <a href="/fr/docs/Web/API/Performance_Timeline">Performance Timeline</a> standard defines extensions to the <a href="/fr/docs/Web/API/Performance" title="The Performance interface provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API."><code>Performance</code></a> interface to support client-side latency measurements within applications. Together, these interfaces can be used to help identify an application's performance bottlenecks.</dd> - <dt><a href="/fr/docs/Web/API/User_Timing_API/Using_the_User_Timing_API">User Timing API</a></dt> - <dd>Create application specific timestamps using the <a href="/fr/docs/Web/API/User_Timing_API">user timing API</a>'s "mark" and "measure" entry types - that are part of the browser's performance timeline.</dd> - <dt><a href="/fr/docs/Web/API/Frame_Timing_API/Using_the_Frame_Timing_API">Frame Timing API</a></dt> - <dd>The <code><a href="/fr/docs/Web/API/PerformanceFrameTiming">PerformanceFrameTiming</a></code> interface provides <em>frame</em> timing data about the browser's event loop.</dd> - <dt><a href="/fr/docs/Web/API/Beacon_API/Using_the_Beacon_API">Beacon API</a></dt> - <dd><small>The <a href="/fr/docs/Web/API/Beacon_API">Beacon</a> interface schedules an asynchronous and non-blocking request to a web server.</small></dd> - <dt><a href="/fr/docs/Web/API/Intersection_Observer_API/Timing_element_visibility">Intersection Observer API</a></dt> - <dd>Learn to time element visibility with the <a href="/fr/docs/Web/API/Intersection_Observer_API">Intersection Observer API</a> and be asynchronously notified when elements of interest becomes visible.</dd> -</dl> - -<h2>Other documentation</h2> - -<dl> - <dt><a href="/fr/docs/Tools/Performance">Developer Tools Performance Features</a></dt> - <dd>This section provides information on how to use and understand the performance features in your developer tools, including <a href="/fr/docs/Tools/Performance/Waterfall">Waterfall</a>, <a href="/fr/docs/Tools/Performance/Call_Tree">Call Tree</a>, and <a href="/fr/docs/Tools/Performance/Flame_Chart">Flame Charts</a>.</dd> - <dt><a href="/fr/docs/Learn/Performance/Understanding_latency">Understanding Latency</a></dt> - <dd>Latency is the amount of time it takes between the browser making a request for a resource, and the browser receiving back the first byte of the resource requested. This article explains what latency is, how it impacts performance, how to measure latency, and how to reduce it.</dd> -</dl> - -<h2 id="Glossary_Terms">Glossary Terms</h2> - -<ul> - <li>{{glossary('Beacon')}}</li> - <li>{{glossary('Brotli compression')}}</li> - <li>{{glossary('Client hints')}}</li> - <li>{{glossary('Code splitting')}}</li> - <li>{{glossary('CSSOM')}}</li> - <li>{{glossary('Domain sharding')}}</li> - <li>{{glossary('Effective connection type')}}</li> - <li>{{glossary('First contentful paint')}}</li> - <li>{{glossary('First CPU idle')}}</li> - <li>{{glossary('First input delay')}}</li> - <li>{{glossary('First interactive')}}</li> - <li>{{glossary('First meaningful paint')}}</li> - <li>{{glossary('First paint')}}</li> - <li>{{glossary('HTTP')}}</li> - <li>{{glossary('HTTP_2', 'HTTP/2')}}</li> - <li>{{glossary('Jank')}}</li> - <li>{{glossary('Latency')}}</li> - <li>{{glossary('Lazy load')}}</li> - <li>{{glossary('Long task')}}</li> - <li>{{glossary('Lossless compression')}}</li> - <li>{{glossary('Lossy compression')}}</li> - <li>{{glossary('Main thread')}}</li> - <li>{{glossary('Minification')}}</li> - <li>{{glossary('Network throttling')}}</li> - <li>{{glossary('Packet')}}</li> - <li>{{glossary('Page load time')}}</li> - <li>{{glossary('Page prediction')}}</li> - <li>{{glossary('Parse')}}</li> - <li>{{glossary('Perceived performance')}}</li> - <li>{{glossary('Prefetch')}}</li> - <li>{{glossary('Prerender')}}</li> - <li>{{glossary('QUIC')}}</li> - <li>{{glossary('RAIL')}}</li> - <li>{{glossary('Real User Monitoring')}}</li> - <li>{{glossary('Resource Timing')}}</li> - <li>{{glossary('Round Trip Time (RTT)')}}</li> - <li>{{glossary('Server Timing')}}</li> - <li>{{glossary('Speculative parsing')}}</li> - <li>{{glossary('Speed index')}}</li> - <li>{{glossary('SSL')}}</li> - <li>{{glossary('Synthetic monitoring')}}</li> - <li>{{glossary('TCP handshake')}}</li> - <li>{{glossary('TCP slow start')}}</li> - <li>{{glossary('Time to first byte')}}</li> - <li>{{glossary('Time to interactive')}}</li> - <li>{{glossary('TLS')}}</li> - <li>{{glossary('TCP', 'Transmission Control Protocol (TCP)')}}</li> - <li>{{glossary('Tree shaking')}}</li> - <li>{{glossary('Web performance')}}</li> -</ul> - - -<h2 id="Documents_yet_to_be_written">Documents yet to be written</h2> - -<dl> - <dt><a href="/fr/docs/Learn/Performance/JavaScript">JavaScript performance best practices</a></dt> - <dd>JavaScript, when used properly, can allow for interactive and immersive web experiences ... or it can significantly harm download time, render time, in app performance, battery life, and user experience. This article outlines some JavaScript best practices that can ensure even complex content's performance is the highest possible.</dd> - <dt><a href="/fr/docs/Learn/Performance/Mobile">Mobile performance</a></dt> - <dd>With web access on mobile devices being so popular, and all mobile platforms having fully-fledged web browsers, but possibly limited bandwidth, CPU, and battery life, it is important to consider the performance of your web content on these platforms. This article also looks at mobile-specific performance considerations.</dd> - <dt>Web font performance</dt> - <dd>An often overlooked aspect of performance landscape are web fonts. Web fonts are more prominent in web design than ever, yet many developers simply embed them from a third party service and think nothing of it. In this article, we'll covers methods for getting your font files as small as possible with efficient file formats and sub setting. From there, we'll go on to talk about how browsers text, and how you can use CSS and JavaScript features to ensure your fonts render quickly, and with minimal disruption to the user experience.</dd> - <dt>Performance bottlenecks</dt> - <dt>Understanding bandwidth</dt> - <dd>Bandwidth is the amount of data measured in Megabits(Mb) or Kilobits(Kb) that one can send per second. This article explains the role of bandwidth in media-rich internet applications, how you can measure it, and how you can optimize applications to make the best use of available bandwidth.</dd> - <dt>The role of TLS in performance</dt> - <dd> - <p>TLS—or HTTPS as we tend to call it—is crucial in creating secure and safe user experiences. While hardware has reduced the negative impacts TLS has had on server performance, it still represents a substantial slice of the time we spend waiting for browsers to connect to servers. This article explains the TLS handshake process, and offers some tips for reducing this time, such as OCSP stapling, HSTS preload headers, and the potential role of resource hints in masking TLS latency for third parties.</p> - </dd> - <dt>Reading performance charts</dt> - <dd>Developer tools provide information on performance, memory, and network requests. Knowing how to read <a href="/fr/docs/Tools/Performance/Waterfall">waterfall</a> charts, <a href="/fr/docs/Tools/Performance/Call_Tree">call trees</a>, traces, <a href="/fr/docs/Tools/Performance/Flame_Chart">flame charts</a> , and <a href="/fr/docs/Tools/Performance/Allocations">allocations</a> in your browser developer tools will help you understand waterfall and flame charts in other performance tools.</dd> - <dt>Alternative media formats</dt> - <dd>When it comes to images and videos, there are more formats than you're likely aware of. Some of these formats can take your highly optimized media-rich pages even further by offering additional reductions in file size. In this guide we'll discuss some alternative media formats, how to use them responsibly so that non-supporting browsers don't get left out in the cold, and some advanced guidance on transcoding your existing assets to them.</dd> - <dt>Analyzing JavaScript bundles</dt> - <dd>No doubt, JavaScript is a big part of modern web development. While you should always strive to reduce the amount of JavaScript you use in your applications, it can be difficult to know where to start. In this guide, we'll show you how to analyze your application's script bundles, so you know <em>what</em> you're using, as well how to detect if your app contains duplicated scripts between bundles.</dd> - <dt><a href="/fr/docs/Web/Performance/Lazy_loading">Lazy loading</a></dt> - <dd>It isn't always necessary to load all of a web applications assets on initial page load. Lazy Loading is deferring the loading of assets on a page, such as scripts, images, etc., on a page to a later point in time i.e when those assets are actually needed.</dd> - <dt>Lazy-loading JavaScript with dynamic imports</dt> - <dd>When developers hear the term "lazy loading", they immediately think of below-the-fold imagery that loads when it scrolls into the viewport. But did you know you can lazy load JavaScript as well? In this guide we'll talk about the dynamic import() statement, which is a feature in modern browsers that loads a JavaScript module on demand. Of course, since this feature isn't available everywhere, we'll also show you how you can configure your tooling to use this feature in a widely compatible fashion.</dd> - <dt><a href="/fr/docs/Web/Performance/Controlling_resource_delivery_with_resource_hints">Controlling resource delivery with resource hints</a></dt> - <dd>Browsers often know better than we do when it comes to resource prioritization and delivery however they're far from clairyovant. Native browser features enable us to hint to the browser when it should connect to another server, or preload a resource before the browser knows it ever needs it. When used judiciously, this can make fast experience seem even faster. In this article, we cover native browser features like rel=preconnect, rel=dns-prefetch, rel=prefetch, and rel=preload, and how to use them to your advantage.</dd> - <dt><a href="/fr/docs/Web/Performance/Performance_budgets">Performance Budgets</a></dt> - <dd>Marketing, design, and sales needs, and developer experience, often ad bloat, third-party scripts, and other features that can slow down web performance. To help set priorities, it is helpful to set a performance budget: a set of restrictions to not exceed during the development phase. In this article, we'll discuss creating and sticking to a performance budget. </dd> - <dt><a href="/fr/docs/Web/Performance/Checklist">Web performance checklist</a></dt> - <dd>A performance checklist of features to consider when developing applications with links to tutorials on how to implement each feature, include service workers, diagnosing performance problems, font loading best practices, client hints, creating performant animations, etc.</dd> - <dt><a href="/fr/docs/Web/Performance/Mobile_performance_checklist">Mobile performance checklist</a></dt> - <dd>A concise checklist of performance considerations impacting mobile network users on hand-held, battery operated devices.</dd> -</dl> - -<h3 id="App_Performance">App Performance</h3> - -<dl> - <dt><a href="/fr/Apps/Developing/Performance/Performance_fundamentals">Performance fundamentals</a></dt> - <dd>A wide overview of Web application performance, what it is, how the browser helps to improve it, and what tools and processes you can use to test and further improve it.</dd> - <dt><a href="/fr/Apps/Developing/Performance/Optimizing_startup_performance">Optimizing startup performance</a></dt> - <dd>Tips and suggestions to help you improve start-up performance, both when writing a new app and when porting an app from another platform to the Web.</dd> - <dt><a href="/fr/docs/Performance/Profiling_with_the_Built-in_Profiler">Profiling with the built-in profiler</a></dt> - <dd>Learn how to profile app performance with Firefox's built-in profiler.</dd> - <dt><a href="/fr/Apps/Build/Performance/CSS_JavaScript_animation_performance">CSS and JavaScript animation performance</a></dt> - <dd>Animations are critical for a pleasurable user experience. This article discusses the performance differences between CSS- and JavaScript-based animations. </dd> -</dl> - -<h2 id="See_also">See also</h2> - -<p>HTML</p> - -<ul> - <li><a href="/fr/docs/Web/HTML/Element/picture">The <code><picture></code> Element</a></li> - <li><a href="/fr/docs/Web/HTML/Element/video">The <code><video></code> Element</a></li> - <li><a href="/fr/docs/Web/HTML/Element/source">The <code><source></code> Element</a></li> - <li><a href="/fr/docs/Web/HTML/Element/img#Attributes">The <code><img> srcset</code> attribute</a> - <ul> - <li><a href="/fr/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images">Responsive images</a></li> - </ul> - </li> - <li><a href="/fr/docs/Web/HTML/Preloading_content">Preloading content with <code>rel="preload"</code></a> - <a href="https://w3c.github.io/preload/">(https://w3c.github.io/preload/ </a>)</li> -</ul> - -<p>CSS</p> - -<ul> - <li><a href="/fr/docs/Web/CSS/will-change">will-change</a></li> - <li>GPU v CPU</li> - <li>Measuring layout</li> - <li>Font-loading best practices</li> -</ul> - -<p>JavaScript</p> - -<ul> - <li><a href="/fr/docs/Web/Events/DOMContentLoaded">DOMContentLoaded</a></li> - <li><a href="/fr/docs/Glossary/Garbage_collection">Garbage collection</a></li> - <li><a href="/fr/docs/Web/API/window/requestAnimationFrame">requestAnimationFrame</a></li> -</ul> - -<p>APIs</p> - -<ul> - <li><a href="/fr/docs/Web/API/Performance_API">Performance API</a></li> - <li><a href="/fr/docs/Web/API/Navigation_timing_API">Navigation Timing API</a></li> - <li><a href="/fr/docs/Web/API/Media_Capabilities_API/Using_the_Media_Capabilities_API">Media Capabilities API</a></li> - <li><a href="/fr/docs/Web/API/Network_Information_API">Network Information API</a></li> - <li><a href="/fr/docs/Web/API/PerformanceNavigationTiming">PerformanceNavigationTiming</a></li> - <li><a href="/fr/docs/Web/API/Battery_Status_API">Battery Status API</a></li> - <li><a href="/fr/docs/Web/API/Navigator/deviceMemory">Navigator.deviceMemory</a></li> - <li><a href="/fr/docs/Web/API/Intersection_Observer_API">Intersection Observer</a></li> - <li><a href="/fr/docs/Web/API/User_Timing_API/Using_the_User_Timing_API">Using the User Timing AP</a>I</li> - <li><a href="/fr/docs/Web/API/Long_Tasks_API">Long Tasks API</a></li> - <li><a href="/fr/docs/Web/API/DOMHighResTimeStamp">High Resolution Timing API</a> (<a href="https://w3c.github.io/hr-time/">https://w3c.github.io/hr-time/)</a></li> - <li><a href="/fr/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API">Resource Timing API</a></li> - <li><a href="/fr/docs/Web/API/Page_Visibility_API">Page Visibility</a></li> - <li><p><a href="/fr/docs/Web/API/Background_Tasks_API">Cooperative Scheduling of Background Tasks API</a></p> - <ul> - <li><a href="/fr/docs/Web/API/Window/requestIdleCallback">requestIdleCallback() </a></li> - </ul> - </li> - <li><a href="/fr/docs/Web/API/Beacon_API/Using_the_Beacon_API">Beacon API</a></li> - <li>Resource Hints - <a href="/fr/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control">dns-prefetch</a>, preconnect, <a href="/fr/docs/Web/HTTP/Link_prefetching_FAQ">prefetch</a>, and prerender</li> - <li><a href="/fr/docs/Web/API/FetchEvent/navigationPreload">Fetchevent.navigationPreload</a></li> - <li><a href="/fr/docs/Web/API/PerformanceServerTiming">Performance Server Timing API</a></li> -</ul> - -<p>Headers</p> - -<ul> - <li><a href="/fr/docs/Web/HTTP/Headers/Content-Encoding">Content-encoding</a></li> - <li>HTTP/2</li> - <li><a href="/fr/docs/Glossary/GZip_compression">gZip</a></li> - <li>Client Hints</li> -</ul> - -<p>Tools</p> - -<ul> - <li><a href="/fr/docs/Tools/Performance">Performance in Firefox Developer Tools</a></li> - <li>Flame charts</li> - <li>The Network panel</li> - <li>Waterfall charts</li> -</ul> - -<p>Additional Metrics</p> - -<ul> - <li>Speed Index and Perceptual Speed Index</li> -</ul> - -<p>Best Practices</p> - -<ul> - <li><a href="/fr/docs/Web/API/Service_Worker_API/Using_Service_Workers">Using Service Workers</a></li> - <li><a href="/fr/docs/Web/API/Web_Workers_API/Using_web_workers">Using Web Workers</a> - <ul> - <li><a href="/fr/docs/Web/API/Web_Workers_API">Web Workers API</a></li> - </ul> - </li> - <li><a href="/fr/docs/Web/Apps/Progressive/Offline_Service_workers">PWA</a></li> - <li><a href="/fr/docs/Web/HTTP/Caching">Caching</a></li> - <li>Content Delivery Networks (CDN)</li> -</ul> +Translation in progress + +Web performance is the objective measurements and the perceived user experience of load time and runtime. Web performance is how long a site takes to load, become interactive and responsive, and how smooth the content is during user interactions - is the scrolling smooth? are buttons clickable? Are pop-ups quick to load and display, and do they animate smoothly as they do so? Web performance includes both objective measurements like time to load, frames per second, and time to become interactive, and subjective experiences of how long it felt like it took the content to load. + +The longer it takes for a site to respond, the more users will abandon the site. It is important to minimize the loading and response times and add additional features to conceal latency by making the experience as available and interactive as possible, as soon as possible, while asynchronously loading in the longer tail parts of the experience. + +There are tools, APIs, and best practices that help us measure and improve web performance. We cover them in this section: + +## In this section + +{{LandingPageListSubpages}} + +## Selected tutorials + +The MDN [Web Performance Learning Area](/fr/docs/Learn/Performance) contains modern, up-to-date tutorials covering Performance essentials: + +- [What is web performance](/fr/docs/Learn/Performance/What_is_web_performance) + - : This article starts the module off with a good look at what Performance actually is — this includes the tools, metrics, APIs, networks, and groups of people we need to consider when thinking about performance, and how we can make Performance part of our web development workflow. +- [Web Performance Basics](/fr/docs/Learn/Performance/web_performance_basics) + - : In addition to the front-end components of HTML, CSS, JavaScript, and media files, there are features that can make applications slower and features that can make applications subjectively and objectively faster. There are many APIs, Developer Tools, best practices and bad practices relating to web performance. Here we'll introduce many of these features at the basic level and provide links to deeper dives to improve performance for each topic. +- [How do users perceive performance?](/fr/docs/Learn/Performance/perceived_performance) + - : More important than how fast your website is in milliseconds, is how fast do your users perceive your site to be. Page load time, idling, responsiveness to user interaction, and the smoothness of scrolling and other animations impact these perceptions. In this article, we discuss the various loading metrics, animation, and responsiveness metrics, along with best practices to improve user perception, if not the actual timings themselves. +- [Multimedia: Images and Video](/fr/docs/Learn/Performance/Multimedia) + - : Frequently, media optimization is the lowest hanging fruit of web performance. Serving different media files based on each user agent's capability, size and pixel density is possible. Additional tips, like removing audio tracks from background images, can improve performance even further. In this article, we discuss the impact video, audio, and image content has on performance, and the methods to ensure that impact is as minimal as possible. +- [CSS performance features](/fr/docs/Learn/Performance/CSS_performance) + - : CSS may be a less important optimization focus for improved performance, but there are some CSS features that impact performance more than others. In this article, we look at some CSS properties that impact performance and suggested ways of handling styles to ensure performance is not negatively impacted. + +## Using Performance APIs + +- [Performance API](/fr/docs/Web/API/Performance_API/Using_the_Performance_API) + - : This guide describes how to use the [`Performance`](/fr/docs/Web/API/Performance "The Performance interface provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.") interfaces that are defined in the [High-Resolution Time](https://w3c.github.io/hr-time/) standard. +- [Resource Timing API](/fr/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API) + - : [Resource loading and timing](/fr/docs/Web/API/Resource_Timing_API) the loading of those resources, including managing the resource buffer and coping with CORS +- [The performance timeline](/fr/docs/Web/API/Performance_Timeline/Using_Performance_Timeline) + - : The [Performance Timeline](/fr/docs/Web/API/Performance_Timeline) standard defines extensions to the [`Performance`](/fr/docs/Web/API/Performance "The Performance interface provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.") interface to support client-side latency measurements within applications. Together, these interfaces can be used to help identify an application's performance bottlenecks. +- [User Timing API](/fr/docs/Web/API/User_Timing_API/Using_the_User_Timing_API) + - : Create application specific timestamps using the [user timing API](/fr/docs/Web/API/User_Timing_API)'s "mark" and "measure" entry types - that are part of the browser's performance timeline. +- [Frame Timing API](/fr/docs/Web/API/Frame_Timing_API/Using_the_Frame_Timing_API) + - : The [`PerformanceFrameTiming`](/fr/docs/Web/API/PerformanceFrameTiming) interface provides _frame_ timing data about the browser's event loop. +- [Beacon API](/fr/docs/Web/API/Beacon_API/Using_the_Beacon_API) + - : The [Beacon](/fr/docs/Web/API/Beacon_API) interface schedules an asynchronous and non-blocking request to a web server. +- [Intersection Observer API](/fr/docs/Web/API/Intersection_Observer_API/Timing_element_visibility) + - : Learn to time element visibility with the [Intersection Observer API](/fr/docs/Web/API/Intersection_Observer_API) and be asynchronously notified when elements of interest becomes visible. + +## Other documentation + +- [Developer Tools Performance Features](/fr/docs/Tools/Performance) + - : This section provides information on how to use and understand the performance features in your developer tools, including [Waterfall](/fr/docs/Tools/Performance/Waterfall), [Call Tree](/fr/docs/Tools/Performance/Call_Tree), and [Flame Charts](/fr/docs/Tools/Performance/Flame_Chart). +- [Understanding Latency](/fr/docs/Learn/Performance/Understanding_latency) + - : Latency is the amount of time it takes between the browser making a request for a resource, and the browser receiving back the first byte of the resource requested. This article explains what latency is, how it impacts performance, how to measure latency, and how to reduce it. + +## Glossary Terms + +- {{glossary('Beacon')}} +- {{glossary('Brotli compression')}} +- {{glossary('Client hints')}} +- {{glossary('Code splitting')}} +- {{glossary('CSSOM')}} +- {{glossary('Domain sharding')}} +- {{glossary('Effective connection type')}} +- {{glossary('First contentful paint')}} +- {{glossary('First CPU idle')}} +- {{glossary('First input delay')}} +- {{glossary('First interactive')}} +- {{glossary('First meaningful paint')}} +- {{glossary('First paint')}} +- {{glossary('HTTP')}} +- {{glossary('HTTP_2', 'HTTP/2')}} +- {{glossary('Jank')}} +- {{glossary('Latency')}} +- {{glossary('Lazy load')}} +- {{glossary('Long task')}} +- {{glossary('Lossless compression')}} +- {{glossary('Lossy compression')}} +- {{glossary('Main thread')}} +- {{glossary('Minification')}} +- {{glossary('Network throttling')}} +- {{glossary('Packet')}} +- {{glossary('Page load time')}} +- {{glossary('Page prediction')}} +- {{glossary('Parse')}} +- {{glossary('Perceived performance')}} +- {{glossary('Prefetch')}} +- {{glossary('Prerender')}} +- {{glossary('QUIC')}} +- {{glossary('RAIL')}} +- {{glossary('Real User Monitoring')}} +- {{glossary('Resource Timing')}} +- {{glossary('Round Trip Time (RTT)')}} +- {{glossary('Server Timing')}} +- {{glossary('Speculative parsing')}} +- {{glossary('Speed index')}} +- {{glossary('SSL')}} +- {{glossary('Synthetic monitoring')}} +- {{glossary('TCP handshake')}} +- {{glossary('TCP slow start')}} +- {{glossary('Time to first byte')}} +- {{glossary('Time to interactive')}} +- {{glossary('TLS')}} +- {{glossary('TCP', 'Transmission Control Protocol (TCP)')}} +- {{glossary('Tree shaking')}} +- {{glossary('Web performance')}} + +## Documents yet to be written + +- [JavaScript performance best practices](/fr/docs/Learn/Performance/JavaScript) + - : JavaScript, when used properly, can allow for interactive and immersive web experiences ... or it can significantly harm download time, render time, in app performance, battery life, and user experience. This article outlines some JavaScript best practices that can ensure even complex content's performance is the highest possible. +- [Mobile performance](/fr/docs/Learn/Performance/Mobile) + - : With web access on mobile devices being so popular, and all mobile platforms having fully-fledged web browsers, but possibly limited bandwidth, CPU, and battery life, it is important to consider the performance of your web content on these platforms. This article also looks at mobile-specific performance considerations. +- Web font performance + - : An often overlooked aspect of performance landscape are web fonts. Web fonts are more prominent in web design than ever, yet many developers simply embed them from a third party service and think nothing of it. In this article, we'll covers methods for getting your font files as small as possible with efficient file formats and sub setting. From there, we'll go on to talk about how browsers text, and how you can use CSS and JavaScript features to ensure your fonts render quickly, and with minimal disruption to the user experience. +- Performance bottlenecks + + Understanding bandwidth + + - : Bandwidth is the amount of data measured in Megabits(Mb) or Kilobits(Kb) that one can send per second. This article explains the role of bandwidth in media-rich internet applications, how you can measure it, and how you can optimize applications to make the best use of available bandwidth. + +- The role of TLS in performance + - : TLS—or HTTPS as we tend to call it—is crucial in creating secure and safe user experiences. While hardware has reduced the negative impacts TLS has had on server performance, it still represents a substantial slice of the time we spend waiting for browsers to connect to servers. This article explains the TLS handshake process, and offers some tips for reducing this time, such as OCSP stapling, HSTS preload headers, and the potential role of resource hints in masking TLS latency for third parties. +- Reading performance charts + - : Developer tools provide information on performance, memory, and network requests. Knowing how to read [waterfall](/fr/docs/Tools/Performance/Waterfall) charts, [call trees](/fr/docs/Tools/Performance/Call_Tree), traces, [flame charts](/fr/docs/Tools/Performance/Flame_Chart) , and [allocations](/fr/docs/Tools/Performance/Allocations) in your browser developer tools will help you understand waterfall and flame charts in other performance tools. +- Alternative media formats + - : When it comes to images and videos, there are more formats than you're likely aware of. Some of these formats can take your highly optimized media-rich pages even further by offering additional reductions in file size. In this guide we'll discuss some alternative media formats, how to use them responsibly so that non-supporting browsers don't get left out in the cold, and some advanced guidance on transcoding your existing assets to them. +- Analyzing JavaScript bundles + - : No doubt, JavaScript is a big part of modern web development. While you should always strive to reduce the amount of JavaScript you use in your applications, it can be difficult to know where to start. In this guide, we'll show you how to analyze your application's script bundles, so you know _what_ you're using, as well how to detect if your app contains duplicated scripts between bundles. +- [Lazy loading](/fr/docs/Web/Performance/Lazy_loading) + - : It isn't always necessary to load all of a web applications assets on initial page load. Lazy Loading is deferring the loading of assets on a page, such as scripts, images, etc., on a page to a later point in time i.e when those assets are actually needed. +- Lazy-loading JavaScript with dynamic imports + - : When developers hear the term "lazy loading", they immediately think of below-the-fold imagery that loads when it scrolls into the viewport. But did you know you can lazy load JavaScript as well? In this guide we'll talk about the dynamic import() statement, which is a feature in modern browsers that loads a JavaScript module on demand. Of course, since this feature isn't available everywhere, we'll also show you how you can configure your tooling to use this feature in a widely compatible fashion. +- [Controlling resource delivery with resource hints](/fr/docs/Web/Performance/Controlling_resource_delivery_with_resource_hints) + - : Browsers often know better than we do when it comes to resource prioritization and delivery however they're far from clairyovant. Native browser features enable us to hint to the browser when it should connect to another server, or preload a resource before the browser knows it ever needs it. When used judiciously, this can make fast experience seem even faster. In this article, we cover native browser features like rel=preconnect, rel=dns-prefetch, rel=prefetch, and rel=preload, and how to use them to your advantage. +- [Performance Budgets](/fr/docs/Web/Performance/Performance_budgets) + - : Marketing, design, and sales needs, and developer experience, often ad bloat, third-party scripts, and other features that can slow down web performance. To help set priorities, it is helpful to set a performance budget: a set of restrictions to not exceed during the development phase. In this article, we'll discuss creating and sticking to a performance budget. +- [Web performance checklist](/fr/docs/Web/Performance/Checklist) + - : A performance checklist of features to consider when developing applications with links to tutorials on how to implement each feature, include service workers, diagnosing performance problems, font loading best practices, client hints, creating performant animations, etc. +- [Mobile performance checklist](/fr/docs/Web/Performance/Mobile_performance_checklist) + - : A concise checklist of performance considerations impacting mobile network users on hand-held, battery operated devices. + +### App Performance + +- [Performance fundamentals](/fr/Apps/Developing/Performance/Performance_fundamentals) + - : A wide overview of Web application performance, what it is, how the browser helps to improve it, and what tools and processes you can use to test and further improve it. +- [Optimizing startup performance](/fr/Apps/Developing/Performance/Optimizing_startup_performance) + - : Tips and suggestions to help you improve start-up performance, both when writing a new app and when porting an app from another platform to the Web. +- [Profiling with the built-in profiler](/fr/docs/Performance/Profiling_with_the_Built-in_Profiler) + - : Learn how to profile app performance with Firefox's built-in profiler. +- [CSS and JavaScript animation performance](/fr/Apps/Build/Performance/CSS_JavaScript_animation_performance) + - : Animations are critical for a pleasurable user experience. This article discusses the performance differences between CSS- and JavaScript-based animations. + +## See also + +HTML + +- [The `<picture>` Element](/fr/docs/Web/HTML/Element/picture) +- [The `<video>` Element](/fr/docs/Web/HTML/Element/video) +- [The `<source>` Element](/fr/docs/Web/HTML/Element/source) +- [The `<img> srcset` attribute](/fr/docs/Web/HTML/Element/img#Attributes) + + - [Responsive images](/fr/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images) + +- [Preloading content with `rel="preload"`](/fr/docs/Web/HTML/Preloading_content) - [(https://w3c.github.io/preload/ ](https://w3c.github.io/preload/)) + +CSS + +- [will-change](/fr/docs/Web/CSS/will-change) +- GPU v CPU +- Measuring layout +- Font-loading best practices + +JavaScript + +- [DOMContentLoaded](/fr/docs/Web/Events/DOMContentLoaded) +- [Garbage collection](/fr/docs/Glossary/Garbage_collection) +- [requestAnimationFrame](/fr/docs/Web/API/window/requestAnimationFrame) + +APIs + +- [Performance API](/fr/docs/Web/API/Performance_API) +- [Navigation Timing API](/fr/docs/Web/API/Navigation_timing_API) +- [Media Capabilities API](/fr/docs/Web/API/Media_Capabilities_API/Using_the_Media_Capabilities_API) +- [Network Information API](/fr/docs/Web/API/Network_Information_API) +- [PerformanceNavigationTiming](/fr/docs/Web/API/PerformanceNavigationTiming) +- [Battery Status API](/fr/docs/Web/API/Battery_Status_API) +- [Navigator.deviceMemory](/fr/docs/Web/API/Navigator/deviceMemory) +- [Intersection Observer](/fr/docs/Web/API/Intersection_Observer_API) +- [Using the User Timing AP](/fr/docs/Web/API/User_Timing_API/Using_the_User_Timing_API)I +- [Long Tasks API](/fr/docs/Web/API/Long_Tasks_API) +- [High Resolution Timing API](/fr/docs/Web/API/DOMHighResTimeStamp) ([https://w3c.github.io/hr-time/)](https://w3c.github.io/hr-time/) +- [Resource Timing API](/fr/docs/Web/API/Resource_Timing_API/Using_the_Resource_Timing_API) +- [Page Visibility](/fr/docs/Web/API/Page_Visibility_API) +- [Cooperative Scheduling of Background Tasks API](/fr/docs/Web/API/Background_Tasks_API) + + - [requestIdleCallback()](/fr/docs/Web/API/Window/requestIdleCallback) + +- [Beacon API](/fr/docs/Web/API/Beacon_API/Using_the_Beacon_API) +- Resource Hints - [dns-prefetch](/fr/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control), preconnect, [prefetch](/fr/docs/Web/HTTP/Link_prefetching_FAQ), and prerender +- [Fetchevent.navigationPreload](/fr/docs/Web/API/FetchEvent/navigationPreload) +- [Performance Server Timing API](/fr/docs/Web/API/PerformanceServerTiming) + +Headers + +- [Content-encoding](/fr/docs/Web/HTTP/Headers/Content-Encoding) +- HTTP/2 +- [gZip](/fr/docs/Glossary/GZip_compression) +- Client Hints + +Tools + +- [Performance in Firefox Developer Tools](/fr/docs/Tools/Performance) +- Flame charts +- The Network panel +- Waterfall charts + +Additional Metrics + +- Speed Index and Perceptual Speed Index + +Best Practices + +- [Using Service Workers](/fr/docs/Web/API/Service_Worker_API/Using_Service_Workers) +- [Using Web Workers](/fr/docs/Web/API/Web_Workers_API/Using_web_workers) + + - [Web Workers API](/fr/docs/Web/API/Web_Workers_API) + +- [PWA](/fr/docs/Web/Apps/Progressive/Offline_Service_workers) +- [Caching](/fr/docs/Web/HTTP/Caching) +- Content Delivery Networks (CDN) |