Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Loading external scripts using head property inside component doesn't load the script if server side rendered #6005
Steps to reproduce
Add external scripts in head() method of the component.
What is expected ?
It should load external scripts when rendered server side or client side.
What is actually happening?
The external script tags are not loaded when page is rendered server side.
@TrueCarry Thanks, I'll try that also. And i'll have to do the same for external css too i guess.
@pimlie No. I meant that temporary.js should be loaded in the index page. Not about page. But its not loading in the index page also if you reload the page and if the page is rendered from server side. It is loaded only if the page is rendered client side (i.e - go to any other page and come back on index page using navigation via nuxt-link, then it'll load temporary.js).
Thanks for your contribution to Nuxt.js!
Issues that are labeled as