From 616fe7b4c6984b1c3b1accf9f27e579d5a7caae4 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 8 Mar 2023 10:54:37 -0600 Subject: [PATCH] Docs note --- README.md | 2 ++ outOfOrderRender.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7aa317..b0cc5e6 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,8 @@ Writes the bundle content to a content-hashed file location in your output direc ``` +Note that writing bundles to files are better cached in the browser for repeat-views but are likely slower for empty-cache first time visitors. + ### Asset bucketing ```html diff --git a/outOfOrderRender.js b/outOfOrderRender.js index 019efc8..f3cce38 100644 --- a/outOfOrderRender.js +++ b/outOfOrderRender.js @@ -106,7 +106,7 @@ class OutOfOrderRender { } // Hoist code in non-default buckets that are output multiple times - // Only hoist if 2+ `get` OR 1 `get` and 1+ `file` + // Only hoist if 2+ `get` OR 1+ `get` and 1+ `file` for(let bucketInfo in bucketsOutputStringCount) { let stringOutputCount = bucketsOutputStringCount[bucketInfo]; if(stringOutputCount > 1 || stringOutputCount === 1 && bucketsFileCount[bucketInfo] > 0) {