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

Add JQuery #4

Closed
KyNorthstar opened this issue Jan 19, 2021 · 0 comments · Fixed by #7
Closed

Add JQuery #4

KyNorthstar opened this issue Jan 19, 2021 · 0 comments · Fixed by #7
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@KyNorthstar
Copy link
Member

KyNorthstar commented Jan 19, 2021

Since these scripts depend on JQuery, it's best to not assume that will be included elsewhere. Include them in this repo to help guarantee stability.

A script like this should be used:

var script = document.createElement('script');
script.src = '//code.jquery.com/jquery-3.x-git.slim.min.js';
script.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(script);

Adapted from a StackOverflow answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant