ericalli / static-site-boilerplate

A better workflow for building modern static websites.
http://staticsiteboilerplate.com
MIT License
1.73k stars 165 forks source link

JS gets added to bottom of body can I have it in head? #19

Closed DESIGNfromWITHIN closed 5 years ago

DESIGNfromWITHIN commented 5 years ago

I installed Vue.js using NPM and load it in scripts.js: import 'vue';

But it does not work since the scripts get loaded at the bottom of the body, any way to move it to head?

lovenick commented 5 years ago

That shouldn't matter - it's generally better to load your JS after the HTML has loaded unless you're using the "defer" attribute.

You sure you're importing Vue correctly?

DESIGNfromWITHIN commented 5 years ago

Ok thx ill check

ericalli commented 5 years ago

@DESIGNfromWITHIN I'm assuming you got this working? If not, feel free to open a new issue.