DEV Community

Discussion on: Adding Scripts to Next.js

Collapse
 
wchr profile image
Wachira

So am trying to load the Twitter embed script but its loaded later after the page has rendered, what should I do in order to load the script before render so that the embed is rendered as a styled component and not just text

Collapse
 
nalanj profile image
Alan Johnson

Hey - this isn't meant for adding front-end scripts, but instead for adding backend scripts that you want to build through webpack. Sorry about the ambiguity there.