rsnext/test/integration/script-loader/base/pages/page6.js
Janicklas Ralph 0441f816a6
Changes to the beforeInteractive strategy to make it work for streaming (#31936)
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>
2022-04-21 21:15:53 +00:00

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