perf(angular): disable async queue (#16118)

* perf(angular): disable async queue

* wip

* update proxy
This commit is contained in:
Manu MA
2018-10-30 20:33:46 +01:00
committed by GitHub
parent fa965e281f
commit c2f58038f5
8 changed files with 184 additions and 77 deletions

View File

@ -14,6 +14,7 @@ export function appInitialize(config: Config) {
const Ionic = win.Ionic = win.Ionic || {};
Ionic.config = config;
Ionic.asyncQueue = false;
Ionic.ael = (elm, eventName, cb, opts) => {
if (elm.__zone_symbol__addEventListener && skipZone(eventName)) {
@ -45,12 +46,10 @@ export function appInitialize(config: Config) {
};
}
const SKIP_ZONE = [
'scroll',
'touchmove',
'mousemove'
const PASS_ZONE = [
'click',
];
function skipZone(eventName: string) {
return SKIP_ZONE.indexOf(eventName) >= 0;
return PASS_ZONE.indexOf(eventName) < 0;
}