0441f816a6
Changes to the beforeInteractive strategy to make it work for streaming Splitting `beforeInteractive` into two strategies `beforeInteractive` at the _document level and `beforePageRender` for page level <Scripts>
16 lines
372 B
JavaScript
16 lines
372 B
JavaScript
import Script from 'next/script'
|
|
|
|
const Page = () => {
|
|
return (
|
|
<div class="container">
|
|
<Script
|
|
id="scriptBeforePageRenderOld"
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.20/lodash.min.js?a=scriptBeforePageRender"
|
|
strategy="beforeInteractive"
|
|
></Script>
|
|
<div>page6</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|