Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jquery imports missing http in examples: #7

Open
MikeiLL opened this issue Mar 16, 2015 · 2 comments
Open

jquery imports missing http in examples: #7

MikeiLL opened this issue Mar 16, 2015 · 2 comments

Comments

@MikeiLL
Copy link

MikeiLL commented Mar 16, 2015

I needed to update:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

to:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
@hughrawlinson
Copy link
Contributor

Hi @MikeiLL, it looks like GitHub may have mangled your issue, any idea what you need to update, and what you needed to update it to?

@hughrawlinson
Copy link
Contributor

Oh, I see what's going on here!

Those are protocol-relative links. When the browser encounters them, it requests the resource from the location using whichever protocol the webpage has been served over. They're useful for preventing protocol mismatch errors and security issues when mixing HTTP and HTTPS. I'm guessing that you cloned this repo locally, and opened an example by double-clicking, and your browser wasn't able to resolve the jQuery asset on your filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants