{"id":2460,"date":"2024-01-20T23:03:25","date_gmt":"2024-01-20T23:03:25","guid":{"rendered":"https:\/\/mugnsoft.com\/?p=2460"},"modified":"2024-01-27T10:25:17","modified_gmt":"2024-01-27T10:25:17","slug":"get-better-web-performance-by-using-javascript-defer-and-async","status":"publish","type":"post","link":"https:\/\/mugnsoft.com\/fr\/get-better-web-performance-by-using-javascript-defer-and-async\/","title":{"rendered":"Get better web performance by using Javascript &#8220;defer&#8221; and &#8220;async&#8221;"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Modern websites heavily rely on JavaScripts, but their implementation can significantly affect digital experience. Understanding how to minimize the performance impact of JavaScripts is crucial for web developers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding render-blocking JavaScripts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScripts are often \u201crender-blocking\u201d. When a browser parses an HTML file and encounters a <code>&lt;script&gt;...&lt;\/script&gt;<\/code> tag, it must pause the DOM building process to fetch and execute the script. This is particularly impactful for external scripts (<code>&lt;script src=\u201d...\u201d&gt;<\/code>), potentially degrading the overall user experience.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">JavaScripts in the &lt;head&gt;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Scripts placed in the &lt;head> section of a webpage directly impact loading metrics like <a href=\"https:\/\/mugnsoft.com\/fr\/optimizing-largest-contentful-paint-lcp-for-better-loading-speed\/\" title=\"\">Largest Contentful Paint (LCP)<\/a>, as the HTML parsing process is paused until the script is fetched and executed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"121\" src=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp\" alt=\"html parsing process with js in the head\" class=\"wp-image-2462\" srcset=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp 801w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head-600x91.webp 600w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head-300x45.webp 300w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head-768x116.webp 768w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head-18x3.webp 18w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">JavaScripts in the &lt;body&gt;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Placing scripts at the end of the &lt;body&gt; tag is a simple solution. This approach allows the HTML parsing process to complete uninterrupted, and the script is executed only after the DOM is ready, not affecting loading metrics like <a href=\"https:\/\/mugnsoft.com\/fr\/explore-page-load-time-plt-for-better-web-experience\/\" title=\"\">Page Load Time (PLT)<\/a> and <a href=\"https:\/\/mugnsoft.com\/fr\/optimizing-largest-contentful-paint-lcp-for-better-loading-speed\/\" title=\"\">LCP<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"801\" height=\"141\" src=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_body.webp\" alt=\"html parsing process with js in the body\" class=\"wp-image-2463\" srcset=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_body.webp 801w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_body-600x106.webp 600w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_body-300x53.webp 300w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_body-768x135.webp 768w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_body-18x3.webp 18w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Challenges of placing scripts at the end of the body<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">However, this technique has limitations. It&#8217;s only effective if the script can execute after the DOM is ready. Additionally, script fetching time, influenced by network conditions and script size, can delay execution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optimizing with defer and async<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To minimize JavaScript loading impact, use the <code>defer<\/code> and <code>async<\/code> attributes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>&lt;script defer src=\u201dyour-script.js\u201d&gt;&lt;\/script&gt;<\/code><\/li>\n\n\n\n<li><code>&lt;script async src=\u201dyour-script.js\u201d&gt;&lt;\/script&gt;<\/code><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Both attributes prevent blocking the DOM building process, supported by most modern browsers (<a href=\"https:\/\/caniuse.com\/script-async\" target=\"_blank\" rel=\"noopener\" title=\"\">caniuse.com\/script-async<\/a>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What is \u201cdefer\u201d?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>defer<\/code> attribute allows the script to load in the background and execute when the DOM is fully built, improving performance by fetching the script while parsing the HTML.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"201\" src=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_defer.webp\" alt=\"html parsing process with js with defer\" class=\"wp-image-2464\" srcset=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_defer.webp 681w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_defer-600x177.webp 600w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_defer-300x89.webp 300w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_defer-18x5.webp 18w\" sizes=\"auto, (max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">What is \u201casync\u201d?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>async<\/code> attribute makes the script independent, allowing it to fetch without blocking HTML parsing and execute at any point relative to the DOM\u2019s readiness.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"178\" src=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_async.webp\" alt=\"html parsing process with js with async\" class=\"wp-image-2465\" srcset=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_async.webp 726w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_async-600x147.webp 600w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_async-300x74.webp 300w, https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_with_async-18x4.webp 18w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Key takeaways<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Using <code>defer<\/code> or <code>async<\/code> enhances user experience, especially when JavaScript execution is not critical for rendering page content.  <br>Defer ensures HTML parsing is never blocked, while async loads scripts independently.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Further reading<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/mugnsoft.com\/fr\/better-interactivity-by-improving-first-input-delay-fid\/\" title=\"\"><a href=\"https:\/\/mugnsoft.com\/wp-admin\/post.php?post=2364&amp;action=edit\">Better interactivity by improving First Input Delay (FID)<\/a><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/mugnsoft.com\/fr\/improve-the-time-to-interactive-tti-for-better-web-experience\/\" title=\"\"><a href=\"https:\/\/mugnsoft.com\/wp-admin\/post.php?post=2449&amp;action=edit\">Improve Time to Interactive (TTI) for better web experience<\/a><\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Discover how to concretely apply &#8216;defer&#8217; and &#8216;async&#8217; attributes in JavaScript for better webpage loading speed and enhanced web performance<\/p>","protected":false},"author":4,"featured_media":2462,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-2460","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development"],"acf":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Get better web performance by using Javascript &quot;defer&quot; and &quot;async&quot; - Mugnsoft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mugnsoft.com\/fr\/get-better-web-performance-by-using-javascript-defer-and-async\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get better web performance by using Javascript &quot;defer&quot; and &quot;async&quot; - Mugnsoft\" \/>\n<meta property=\"og:description\" content=\"Discover how to concretely apply &#039;defer&#039; and &#039;async&#039; attributes in JavaScript for better webpage loading speed and enhanced web performance\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mugnsoft.com\/fr\/get-better-web-performance-by-using-javascript-defer-and-async\/\" \/>\n<meta property=\"og:site_name\" content=\"Mugnsoft\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-20T23:03:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-27T10:25:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"801\" \/>\n\t<meta property=\"og:image:height\" content=\"121\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Viseth Chaing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Viseth Chaing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/\"},\"author\":{\"name\":\"Viseth Chaing\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#\\\/schema\\\/person\\\/cb3a88d4c1866765c4ae18eb0d179a7b\"},\"headline\":\"Get better web performance by using Javascript &#8220;defer&#8221; and &#8220;async&#8221;\",\"datePublished\":\"2024-01-20T23:03:25+00:00\",\"dateModified\":\"2024-01-27T10:25:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/\"},\"wordCount\":354,\"publisher\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mugnsoft.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/js_in_the_head.webp\",\"articleSection\":[\"Web Development\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/\",\"url\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/\",\"name\":\"Get better web performance by using Javascript \\\"defer\\\" and \\\"async\\\" - Mugnsoft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mugnsoft.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/js_in_the_head.webp\",\"datePublished\":\"2024-01-20T23:03:25+00:00\",\"dateModified\":\"2024-01-27T10:25:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mugnsoft.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/js_in_the_head.webp\",\"contentUrl\":\"https:\\\/\\\/mugnsoft.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/js_in_the_head.webp\",\"width\":801,\"height\":121},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/get-better-web-performance-by-using-javascript-defer-and-async\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mugnsoft.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get better web performance by using Javascript &#8220;defer&#8221; and &#8220;async&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#website\",\"url\":\"https:\\\/\\\/mugnsoft.com\\\/\",\"name\":\"Mugnsoft\",\"description\":\"| Monitoring web site\",\"publisher\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mugnsoft.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#organization\",\"name\":\"Mugnsoft\",\"url\":\"https:\\\/\\\/mugnsoft.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mugnsoft.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/mugnsoft.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/logo.png\",\"width\":125,\"height\":118,\"caption\":\"Mugnsoft\"},\"image\":{\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/77763341\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mugnsoft.com\\\/#\\\/schema\\\/person\\\/cb3a88d4c1866765c4ae18eb0d179a7b\",\"name\":\"Viseth Chaing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/447909c00799b7abcfc966cd82e1f6f810361ea5e4f1e97471d41bc71f230f04?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/447909c00799b7abcfc966cd82e1f6f810361ea5e4f1e97471d41bc71f230f04?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/447909c00799b7abcfc966cd82e1f6f810361ea5e4f1e97471d41bc71f230f04?s=96&d=mm&r=g\",\"caption\":\"Viseth Chaing\"},\"url\":\"https:\\\/\\\/mugnsoft.com\\\/fr\\\/author\\\/contactmugnsoft-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get better web performance by using Javascript \"defer\" and \"async\" - Mugnsoft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mugnsoft.com\/fr\/get-better-web-performance-by-using-javascript-defer-and-async\/","og_locale":"fr_FR","og_type":"article","og_title":"Get better web performance by using Javascript \"defer\" and \"async\" - Mugnsoft","og_description":"Discover how to concretely apply 'defer' and 'async' attributes in JavaScript for better webpage loading speed and enhanced web performance","og_url":"https:\/\/mugnsoft.com\/fr\/get-better-web-performance-by-using-javascript-defer-and-async\/","og_site_name":"Mugnsoft","article_published_time":"2024-01-20T23:03:25+00:00","article_modified_time":"2024-01-27T10:25:17+00:00","og_image":[{"width":801,"height":121,"url":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp","type":"image\/webp"}],"author":"Viseth Chaing","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Viseth Chaing","Dur\u00e9e de lecture estim\u00e9e":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#article","isPartOf":{"@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/"},"author":{"name":"Viseth Chaing","@id":"https:\/\/mugnsoft.com\/#\/schema\/person\/cb3a88d4c1866765c4ae18eb0d179a7b"},"headline":"Get better web performance by using Javascript &#8220;defer&#8221; and &#8220;async&#8221;","datePublished":"2024-01-20T23:03:25+00:00","dateModified":"2024-01-27T10:25:17+00:00","mainEntityOfPage":{"@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/"},"wordCount":354,"publisher":{"@id":"https:\/\/mugnsoft.com\/#organization"},"image":{"@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#primaryimage"},"thumbnailUrl":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp","articleSection":["Web Development"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/","url":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/","name":"Get better web performance by using Javascript \"defer\" and \"async\" - Mugnsoft","isPartOf":{"@id":"https:\/\/mugnsoft.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#primaryimage"},"image":{"@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#primaryimage"},"thumbnailUrl":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp","datePublished":"2024-01-20T23:03:25+00:00","dateModified":"2024-01-27T10:25:17+00:00","breadcrumb":{"@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#primaryimage","url":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp","contentUrl":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2024\/01\/js_in_the_head.webp","width":801,"height":121},{"@type":"BreadcrumbList","@id":"https:\/\/mugnsoft.com\/get-better-web-performance-by-using-javascript-defer-and-async\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mugnsoft.com\/"},{"@type":"ListItem","position":2,"name":"Get better web performance by using Javascript &#8220;defer&#8221; and &#8220;async&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/mugnsoft.com\/#website","url":"https:\/\/mugnsoft.com\/","name":"Mugnsoft","description":"| Monitoring web site","publisher":{"@id":"https:\/\/mugnsoft.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mugnsoft.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/mugnsoft.com\/#organization","name":"Mugnsoft","url":"https:\/\/mugnsoft.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/mugnsoft.com\/#\/schema\/logo\/image\/","url":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2022\/12\/logo.png","contentUrl":"https:\/\/mugnsoft.com\/wp-content\/uploads\/2022\/12\/logo.png","width":125,"height":118,"caption":"Mugnsoft"},"image":{"@id":"https:\/\/mugnsoft.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/77763341"]},{"@type":"Person","@id":"https:\/\/mugnsoft.com\/#\/schema\/person\/cb3a88d4c1866765c4ae18eb0d179a7b","name":"Viseth Chaing","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/447909c00799b7abcfc966cd82e1f6f810361ea5e4f1e97471d41bc71f230f04?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/447909c00799b7abcfc966cd82e1f6f810361ea5e4f1e97471d41bc71f230f04?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/447909c00799b7abcfc966cd82e1f6f810361ea5e4f1e97471d41bc71f230f04?s=96&d=mm&r=g","caption":"Viseth Chaing"},"url":"https:\/\/mugnsoft.com\/fr\/author\/contactmugnsoft-com\/"}]}},"_links":{"self":[{"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/posts\/2460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/comments?post=2460"}],"version-history":[{"count":3,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/posts\/2460\/revisions"}],"predecessor-version":[{"id":2504,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/posts\/2460\/revisions\/2504"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/media\/2462"}],"wp:attachment":[{"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/media?parent=2460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/categories?post=2460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mugnsoft.com\/fr\/wp-json\/wp\/v2\/tags?post=2460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}