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

CSS fails to load fronts from CDN #1603

Closed
ejfrancis opened this issue Aug 13, 2017 · 1 comment
Closed

CSS fails to load fronts from CDN #1603

ejfrancis opened this issue Aug 13, 2017 · 1 comment

Comments

@ejfrancis
Copy link

ejfrancis commented Aug 13, 2017

If you try to load the CSS from a CDN, it fails to load the fonts. The issue is that the CSS file here (which is taken from the docs:

https://unpkg.com/iview@2.0.0/dist/styles/iview.css

Is trying to load the font via a url here:

src:url(fonts/ionicons.eot?v=2.0.0)

but that URL returns an "Invalid query: v=2.0.0"
https://unpkg.com/iview@2.0.0/dist/styles/fonts/ionicons.eot?v=2.0.0

If you remove the ?v=2.0.0 from the URL its accessible
https://unpkg.com/iview@2.0.0/dist/styles/fonts/ionicons.eot

@MartinKolarik
Copy link

This is caused by a recent breaking change in unpkg.com as they started blocking all requests containing a query string.

If you'd like, you are welcome to use jsDelivr CDN, which works in a similar fashion but is strongly focused on production usage and never breaks any existing links.

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

No branches or pull requests

3 participants