Implementing locking mechanism for SSR
Next JS
import { Html, Head, Main, NextScript } from 'next/document';
export default function Document() {
return (
<Html>
<Head>
{/* Lock AB Tasty before tag loads */}
<script>{`window.lockABTastyTag = true;`}</script>
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}Angular
VueJS
Vanilla JS
Last updated
Was this helpful?

