{"json_modified": "2016-05-06T06:43:50.585070", "uuid": "621ad60d-7a36-4317-8fdd-9500fc849549", "title": "\u5bf9\u9875\u9762\u9884\u89e3\u6790\u8fdb\u884c\u4f18\u5316", "url": "/zh-CN/docs/Web/HTML/Optimizing_your_pages_for_speculative_parsing", "tags": [], "translations": [{"uuid": "9a0553ed-3caa-4311-a1e1-b2a975e44674", "title": "Optimizing your pages for speculative parsing", "url": "/en-US/docs/Web/HTML/Optimizing_your_pages_for_speculative_parsing", "tags": ["NeedsUpdate", "Advanced", "HTML", "HTML5", "Web Development"], "summary": "Traditionally in browsers the HTML\u00a0parser has run on the main thread and has blocked after a </script>
tag until the script has been retrieved from the network and executed. The HTML parser in Firefox 4 and later supports speculative parsing off the main thread. It parses ahead while scripts are being downloaded and executed. As in Firefox 3.5 and 3.6, the HTML parser starts speculative loads for scripts, style sheets and images it finds ahead in the stream. However, in Firefox 4 and later the HTML parser also runs the HTML tree construction algorithm speculatively. The upside is that when a speculation succeeds, there's no need to reparse the part of the incoming file that was already scanned for scripts, style sheets and images. The downside is that there's more work lost when the speculation fails.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-01-14T18:42:22", "review_tags": []}, {"uuid": "27b7c475-337a-476a-b0ed-c6ab9e7bb47f", "title": "Optimizing your pages for speculative parsing", "url": "/pt-BR/docs/Web/HTML/Optimizing_your_pages_for_speculative_parsing", "tags": [], "summary": "Traditionally in browsers the HTML\u00a0parser has run on the main thread and has blocked after a </script>
tag until the script has been retrieved from the network and executed. The HTML parser in Firefox 4 and later supports speculative parsing off the main thread. It parses ahead while scripts are being downloaded and executed. As in Firefox 3.5 and 3.6, the HTML parser starts speculative loads for scripts, style sheets and images it finds ahead in the stream. However, in Firefox 4 and later the HTML parser also runs the HTML tree construction algorithm speculatively. The upside is that when a speculation succeeds, there's no need to reparse the part of the incoming file that was already scanned for scripts, style sheets and images. The downside is that there's more work lost when the speculation fails.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2014-06-24T05:49:18", "review_tags": []}, {"uuid": "c405144a-e883-421c-8a4c-0ee6b84a931f", "title": "Optimizing your pages for speculative parsing", "url": "/ru/docs/Web/HTML/Optimizing_Your_Pages_for_Speculative_Parsing", "tags": [], "summary": "Traditionally in browsers the HTML\u00a0parser has run on the main thread and has blocked after a </script>
tag until the script has been retrieved from the network and executed. The HTML parser in Firefox 4 and later supports speculative parsing off the main thread. It parses ahead while scripts are being downloaded and executed. As in Firefox 3.5 and 3.6, the HTML parser starts speculative loads for scripts, style sheets and images it finds ahead in the stream. However, in Firefox 4 and later the HTML parser also runs the HTML tree construction algorithm speculatively. The upside is that when a speculation succeeds, there's no need to reparse the part of the incoming file that was already scanned for scripts, style sheets and images. The downside is that there's more work lost when the speculation fails.", "localization_tags": [], "locale": "ru", "last_edit": "2014-07-02T22:52:58", "review_tags": []}, {"uuid": "06d42579-b96b-483d-810d-9d861528de31", "title": "Optimizar sus p\u00e1ginas para an\u00e1lisis especulativo", "url": "/es/docs/Web/HTML/Optimizing_your_pages_for_speculative_parsing", "tags": ["Avanzado", "HTML", "HTML5", "Desarrollo web"], "summary": "Tradicionalmente en los navegadores el analizador de HTML corre en el hilo de ejecuci\u00f3n principal y se queda bloqueado despu\u00e9s de una etiqueta hasta que el c\u00f3digo se haya recuperado y ejecutado. El analizador de HTML de Firefox 4 y posteriores soporta an\u00e1lisis especulativo fuera del hilo de ejecuci\u00f3n principal. Este\u00a0analiza anticipadamente mientras el codigo est\u00e1 siendo\u00a0descargado y ejecutado. Como en Firefox 3.5 y 3.6, el analizador de HTML es el que inicia la carga especulativa de c\u00f3digo, las hojas de estilos y las imagenes que va encontrando en el flujo de la p\u00e1gina. Sinembargo en Firefox 4 y posteriores el analizador de HTML tambi\u00e9n ejecuta el algoritmo especulativo de la contrucci\u00f3n del \u00e1rbol HTML. La ventaja es que cuando lo especulado tiene exito, no hay necesidad de reanalizar la parte del archivo de entrada que ya fue analizada junto la descarga de\u00a0c\u00f3digo, \u00a0hojas de estilo y las im\u00e1genes. La desventaja es que se ha realizado un trabajo in\u00fatil cuando la especulaci\u00f3n fracasa.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-12-30T15:48:47", "review_tags": []}, {"uuid": "81d14b6b-4925-4662-bf5f-f509e13a84b7", "title": "Optimizing your pages for speculative parsing", "url": "/fr/docs/Web/HTML/Optimizing_your_pages_for_speculative_parsing", "tags": [], "summary": "Traditionally in browsers the HTML\u00a0parser has run on the main thread and has blocked after a </script>
tag until the script has been retrieved from the network and executed. The HTML parser in Firefox 4 and later supports speculative parsing off the main thread. It parses ahead while scripts are being downloaded and executed. As in Firefox 3.5 and 3.6, the HTML parser starts speculative loads for scripts, style sheets and images it finds ahead in the stream. However, in Firefox 4 and later the HTML parser also runs the HTML tree construction algorithm speculatively. The upside is that when a speculation succeeds, there's no need to reparse the part of the incoming file that was already scanned for scripts, style sheets and images. The downside is that there's more work lost when the speculation fails.", "localization_tags": ["inprogress"], "locale": "fr", "last_edit": "2014-09-27T02:02:13", "review_tags": []}], "modified": "2016-05-06T06:43:50", "label": "\u5bf9\u9875\u9762\u9884\u89e3\u6790\u8fdb\u884c\u4f18\u5316", "localization_tags": [], "locale": "zh-CN", "id": 163685, "last_edit": "2016-05-06T06:43:49", "summary": "\u5728\u4f20\u7edf\u7684\u6d4f\u89c8\u5668\u4e2d\uff0cHTML \u89e3\u6790\u5668\u8fd0\u884c\u4e8e\u4e3b\u7ebf\u7a0b\u4e4b\u4e2d\uff0c\u5e76\u4e14\u5728\u9047\u5230 \u6807\u7b7e\u540e\u4f1a\u88ab\u963b\u585e\uff0c\u76f4\u5230\u811a\u672c\u4ece\u7f51\u7edc\u4e2d\u88ab\u83b7\u53d6\u548c\u6267\u884c\u3002 Firefox 4 \u548c\u540e\u7eed\u7684\u7248\u672c\u652f\u6301\u4ece\u4e3b\u7ebf\u7a0b\u4e2d\u5206\u79bb\u7684\u9884\u89e3\u6790\u6280\u672f\u3002 \u5f53\u811a\u672c\u5728\u83b7\u53d6\u548c\u6267\u884c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9884\u89e3\u6790\u6280\u672f\u80fd\u63d0\u524d\u89e3\u6790HTML\u6587\u6863\u3002\u5728Firefox 3.5 \u548c 3.6\u4e2d, HTML \u89e3\u6790\u5668\u80fd\u591f\u5728\u6587\u6863\u6d41\u4e2d\u9884\u5148\u52a0\u8f7d\u811a\u672c\u3001\u5c42\u53e0\u6837\u5f0f\u8868\u548c\u56fe\u7247\u3002\u7136\u800c, \u5728Firefox 4 \u548c\u540e\u7eed\u7684\u7248\u672c\u4e2d HTML \u89e3\u6790\u5668\u4e5f\u9884\u5148\u8fd0\u884cHTML \u6811\u6784\u5efa\u7b97\u6cd5\u3002 \u8fd9\u4e00\u4e3e\u63aa\u7684\u4f18\u70b9\u662f\u5f53\u9884\u89e3\u6790\u6210\u529f\u540e\uff0c\u5c31\u6ca1\u6709\u5fc5\u8981\u518d\u91cd\u65b0\u89e3\u6790\u5df2\u7ecf\u626b\u63cf\u8fc7\u5e76\u4e14\u6210\u529f\u4e0b\u8f7d\u7684\u811a\u672c\uff0c\u5c42\u53e0\u6837\u5f0f\u8868\u548c\u56fe\u7247\uff1b\u7f3a\u70b9\u5c31\u662f\u5f53\u9884\u89e3\u6790\u5931\u8d25\u4e4b\u540e\uff0c\u6709\u5f88\u591a\u5de5\u4f5c\u9700\u8981\u53bb\u505a\u3002", "sections": [{"id": "\u4f7f\u9884\u52a0\u8f7d\u6210\u529f", "title": "\u4f7f\u9884\u52a0\u8f7d\u6210\u529f"}, {"id": "\u907f\u514d\u6811\u6784\u5efa\u5668\u7684\u8f93\u51fa\u4e22\u5931", "title": "\u907f\u514d\u6811\u6784\u5efa\u5668\u7684\u8f93\u51fa\u4e22\u5931"}], "slug": "Web/HTML/Optimizing_your_pages_for_speculative_parsing", "review_tags": ["editorial"]}