WebUI NTP: Split to main and lazy bundles to optimize load time.
In order to optimize the initial load time of the NTP, move non-essential UI elements to a "lazy" loaded module. This significantly reduces the amount of code that needs to load before the initial paint. Specifically: Before: 312K new_tab_page.rollup.js After: 97K new_tab_page.rollup.js 97K shared.rollup.js 122K lazy_load.rollup.js which means that there is a ~38% reduction (312 -> 97 + 97 = 194K), in the size of the code that is loaded on startup. Bug: None Change-Id: I8f9d0e41047538015f3c41cac0ac3ba5fb1fffdd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425330 Commit-Queue: dpapad <dpapad@chromium.org> Reviewed-by:Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by:
Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#821880}
Showing
Please register or sign in to comment