Skip to content

Use jQuery from CDN, fall back to local if needed #1103

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

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

Philippus
Copy link
Member

Implemented the change suggested by @NthPortal.

@Philippus Philippus requested a review from NthPortal July 18, 2018 16:50
@Philippus Philippus changed the title Use jQuery from CDN, fall back to local if needed, closes #1074 Use jQuery from CDN, fall back to local if needed Jul 18, 2018
Copy link
Contributor

@NthPortal NthPortal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@NthPortal
Copy link
Contributor

Thanks so much for doing this!!

@@ -21,7 +21,8 @@
</footer>

<!-- jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script>
<script>(window.jQuery) || document.write('<script src="/scripts/jquery.3.1.1.js"><\/script>');</script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I'm wondering is if this needs to be src="{{ site.baseurl }}/scripts/jquery.3.1.1.js", but I don't really know enough about jekyll to answer that for sure

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added it.

@Philippus Philippus force-pushed the jquery-fallback branch 2 times, most recently from 637e752 to 473acd0 Compare July 18, 2018 18:24
@NthPortal NthPortal merged commit d7acf3d into scala:master Jul 18, 2018
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

Successfully merging this pull request may close these issues.

2 participants