Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery is not loaded from cdn in layout.ejs in sails.js

Tags:

cdn

sails.js

I am trying sails.js but am confused. I need to use jquery and put it in the layout.ejs as CDN however it is not recognized in the view.

I am not using linker (is it a must?)

Thanks

like image 925
BenA Avatar asked Dec 03 '25 01:12

BenA


1 Answers

Be careful NOT to put the link to the cdn between:

<!--SCRIPTS-->

<!--SCRIPTS END-->

or they will be overwritten by whatever is on the local /assets/linker/js (or assets/js in Sailsjs 0.10)

like image 197
Diego Pamio Avatar answered Dec 07 '25 14:12

Diego Pamio



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!