kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.54k stars 5.89k forks source link

jsdelivr.com 404 error #2900

Open nikmauro opened 7 years ago

nikmauro commented 7 years ago

jquery.min.js:3 GET https://cdn.jsdelivr.net/g/ajax-loader.gif 404 () Fa @ jquery.min.js:3 css @ jquery.min.js:3 get @ jquery.min.js:3 css @ jquery.min.js:3 (anonymous) @ jquery.min.js:4 K @ jquery.min.js:2 n.fn.(anonymous function) @ jquery.min.js:4 b.setDimensions @ jquery.blockui@2.70.0,bootstrap@3.3.7,jquery.goodshare.js@4.0.6,jquery.slick@1.6.0:44 b.setPosition @ jquery.blockui@2.70.0,bootstrap@3.3.7,jquery.goodshare.js@4.0.6,jquery.slick@1.6.0:44 f @ jquery.min.js:2 b.loadSlider @ jquery.blockui@2.70.0,bootstrap@3.3.7,jquery.goodshare.js@4.0.6,jquery.slick@1.6.0:44 b.init @ jquery.blockui@2.70.0,bootstrap@3.3.7,jquery.goodshare.js@4.0.6,jquery.slick@1.6.0:44 c @ jquery.blockui@2.70.0,bootstrap@3.3.7,jquery.goodshare.js@4.0.6,jquery.slick@1.6.0:44 a.fn.slick @ jquery.blockui@2.70.0,bootstrap@3.3.7,jquery.goodshare.js@4.0.6,jquery.slick@1.6.0:45 (anonymous) @ app.js?sha=779687d…:3 i @ jquery.min.js:2 fireWith @ jquery.min.js:2 ready @ jquery.min.js:2 J @ jquery.min.js:2 home.html:1 GET https://cdn.jsdelivr.net/g/fonts/slick.ttf

cdl_mac_ 2017-05-19 at 12 39 16

jimaek commented 7 years ago

This URL is wrong, that's why it shows the error. You cant use the combination feature /g/ with files that include other files because it breaks the path. This was always the case.

You must load the css files that include the fonts and gif as separate files. Dont combine them.

KevinCocquyt39 commented 7 years ago

Not exactly the same but definitely related. I had the same issue (404s) when using .NET MVC with bundling. Because the relative paths are set with './...', it uses the current directory and searches from there... As with bundling, the current directory changes resulting in a 404. Because of that, I had to change the relative paths to '/content/slick/...' (without the . so starting from the root directory) in the 'theme.css' file.

Keep in mind. '/content' is a path used in MVC in combination with NuGet so you might have to take a different route.