Saif Rahman
Saif Rahman

Reputation: 128

Issues with JQuery and AWS S3 web hosting

I've created a website that uses 'http://code.jquery.com/jquery-latest.js' for some javascript animations. I've hosted my website on AWS S3, but it seems like the animations aren't working. I believe it has something to do with CORS and allowing it use the jquery link, but I may be wrong. Any advice? Sorry if I'm not using the terms correctly, am just learning all of this. Please let me know if theres more information required to answer, I'll gladly update the question with it.

I have this statement at the end of my html code.

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script src="assets/js/nav-main.js"></script>

Upvotes: 1

Views: 637

Answers (1)

Ahsan Nadeem
Ahsan Nadeem

Reputation: 78

Maybe your AWS S3 doesn't have access/permission to every link/Web from server, due to which jquery is not loaded. Download jquery file Download jquery and try using this downloaded file in code.

Upvotes: 1

Related Questions