You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Clarify html.js vs. onPreRenderHTML
Clarify a note that adding a script via html.js is the same as using onPreRenderHTML.
* chore: format
Co-authored-by: gatsbybot <[email protected]>
Copy file name to clipboardExpand all lines: docs/docs/how-to/performance/improving-site-performance.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ There are a number of places to put an inlined script, depending whether you nee
79
79
-_Some deferring_: You can place the script in [onClientEntry](/docs/browser-apis/#onClientEntry) to have it execute after page load, but before the browser renders the page.
80
80
-_More deferring_: You can place the script in [onInitialClientRender](/docs/browser-apis/#onInitialClientRender) to have it execute after the browser renders the page.
81
81
82
-
Note that if you are using [html.js](/docs/custom-html/), you should modify that file to include your snippet instead of using `onPreRenderHTML`.
82
+
Note that if you are already using [html.js](/docs/custom-html/), you should modify that file to include your snippet instead of using `onPreRenderHTML`. This will have the same behavior.
0 commit comments