From f4ed8f40d87d0c8ef9ed6c00c5d4eda921f187a4 Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Tue, 23 Jan 2018 01:43:30 +0900 Subject: [PATCH] docs: fix #19989, add zone flags(blacklist/module) in guide (#21701) PR Close #21701 --- aio/content/guide/browser-support.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/aio/content/guide/browser-support.md b/aio/content/guide/browser-support.md index 2c0dd52b98b96c..0eeb0e6962a3dc 100644 --- a/aio/content/guide/browser-support.md +++ b/aio/content/guide/browser-support.md @@ -616,10 +616,19 @@ If you aren't using the CLI, you should add your polyfill scripts directly to th <!-- pre-zone polyfills --> <script src="node_modules/core-js/client/shim.min.js"></script> <script src="node_modules/web-animations-js/web-animations.min.js"></script> + <script> + /** + * you can configure some zone flags which can disable zone interception for some + * asynchronous activities to improve startup performance - use these options only + * if you know what you are doing as it could result in hard to trace down bugs.. + */ + // __Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + // __Zone_disable_on_property = true; // disable patch onProperty such as onclick + // __zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + </script> <!-- zone.js required by Angular --> <script src="node_modules/zone.js/dist/zone.js"></script> <!-- application polyfills --> -