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

Autoloader could work using a CDN #1424

Closed
Golmote opened this issue May 18, 2018 · 0 comments · Fixed by #1928
Closed

Autoloader could work using a CDN #1424

Golmote opened this issue May 18, 2018 · 0 comments · Fixed by #1928

Comments

@Golmote
Copy link
Contributor

Golmote commented May 18, 2018

Is there an actual reason to prevent the autoloader from being loaded from an absolute URL? (cc @bazooka07)

By removing the second part of this condition, we could make the following work just fine:

<script src="https://cdn.jsdelivr.net/npm/prismjs@1.14.0/plugins/autoloader/prism-autoloader.js" data-autoloader-path="https://cdn.jsdelivr.net/npm/prismjs@1.14.0/components/"></script>

(See related #158 (comment))

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

Successfully merging a pull request may close this issue.

2 participants