Skip to content

Commit

Permalink
expand example
Browse files Browse the repository at this point in the history
  • Loading branch information
marjakh authored Oct 11, 2024
1 parent a4f9570 commit 1d7d7d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ We propse adding the following magic comment to trigger eager compilation of all

```JavaScript
//# eagerCompilation=all

function foo() { ... } // will now be eagerly parsed and compiled
function bar() { ... } // will now be eagerly parsed and compiled
```

The magic comment is intended as a hint to the browser. It signals the functions in this JS file should be treated as "high priority" - for example, compile them immediately when processing the script, as opposed to when a function is called.
Expand Down

0 comments on commit 1d7d7d4

Please sign in to comment.