Mobile app version of vmapp.org
Login or Join
Pierce454

: Clicking on the downloaded jQuery file gives errors from the source "Microsoft JScript compilation error" When trying to open Jquery after installing it on Chrome, I get this error: And when

@Pierce454

Posted in: #Download #Error #Jquery

When trying to open Jquery after installing it on Chrome, I get this error:



And when I download it on Firefox, I get this error:



Can anyone tell me how to fix these issues? I'm using Windows 10, if that helps.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

JQuery isn't something you "open" it is a JavaScript library you include and reference in your website's code via <script></script> tags.

An example taken from the jQuery site itself is:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo</title>
</head>
<body>
<script src="jquery.js"></script>
<script>
$(document).ready(function() {
alert('The DOM is loaded.');
});
</script>
</body>
</html>


I suggest reading up more about jQuery in there own docs or just searching the web. Also jQuery is hosted on many CDN's so you don't even need to download it technically to use it, you can include it in your code via

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>

Keep in mind the pro's and con's of loading such libraries from a third party/CDN.

PROS


CDN will delivery the resource to the user usually faster then your own host can since they have distributed networks around the world to deliver the content to users from the fastest point to them.
Since your not hosting the script the server load isn't on your end freeing up more resources and load time from your own server.


CONS


Your at the mercy of a third party to keep the link active and working at all times and not tampered with.


Obviously more pros and cons are out there but you can lookup that up if you want more information; going deeper here is beyond the scope of this question.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme