From e82812b9a9992bc275bba54575f9d780753c1f8f 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 2c0dd52b98..0eeb0e6962 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 --> -