Skip to content

Commit

Permalink
perf(): async queue for hydrated client
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Aug 6, 2019
1 parent f895c63 commit fa7d29f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/bootstrap-lazy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const bootstrapLazy = (lazyBundles: d.LazyBundlesRuntimeData, options: d.
if (options.syncQueue) {
plt.$flags$ |= PLATFORM_FLAGS.queueSync;
}
if (BUILD.hydrateClientSide) {
// If the app is already hydrated there is not point to disable the
// async queue. This will improve the first input delay
plt.$flags$ |= PLATFORM_FLAGS.appLoaded;
}
if (BUILD.hydrateClientSide && BUILD.shadowDom) {
const styles = doc.querySelectorAll('style[s-id]');
let globalStyles = '';
Expand Down

0 comments on commit fa7d29f

Please sign in to comment.