Enduro icon indicating copy to clipboard operation
Enduro copied to clipboard

Can't include js from assets folder

Open marcoburrometo opened this issue 7 years ago • 1 comments

Hello, I can't use an external js.

If i include it with <script src="/assets/js/jquery-3.2.1.min.js" type="text/javascript"></script> It gives me this error (in console):

Refused to execute script from 'http://localhost:3000/assets/js/jquery-3.2.1.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

What am i doing wrong?

marcoburrometo avatar Jul 25 '18 16:07 marcoburrometo

I use endless JS files. Check your path maybe. Where you put this code? What version?

Add more details

Anyway use CDNs for Jquery https://www.sitepoint.com/7-reasons-to-use-a-cdn/

Ezra-Siton-UIX avatar Aug 03 '18 22:08 Ezra-Siton-UIX