Skip to content

Commit

Permalink
Docs note
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Mar 8, 2023
1 parent bb0b934 commit 616fe7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ Writes the bundle content to a content-hashed file location in your output direc
<link rel="stylesheet" href="{% getBundleFileUrl "css" %}">
```

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
Expand Down
2 changes: 1 addition & 1 deletion outOfOrderRender.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 616fe7b

Please sign in to comment.