Slick: Slick 1.9.0 script tag is not loading

Created on 18 Jun 2018  路  7Comments  路  Source: kenwheeler/slick

cdn.jsdelivr.net/gh/kenwheeler/[email protected]/slick/slick.min.js returns an error.

====================================================================

Steps to reproduce the problem

<!-- Add the slick-theme.css if you want default styling -->
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/[email protected]/slick/slick.css"/>
<!-- Add the slick-theme.css if you want default styling -->
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/[email protected]/slick/slick-theme.css"/>

Then, before your closing <body> tag add:

<script type="text/javascript" src="//cdn.jsdelivr.net/gh/kenwheeler/[email protected]/slick/slick.min.js"></script>

====================================================================

What is the expected behaviour?

the library should be loaded, instead there is this error.

$(...).slick() is not a function.

====================================================================

More Details

  • Which browsers/versions does it happen on?
    Chrome - Version 67.0.3396.62 (Official Build) (64-bit)

  • Which jQuery/Slick version are you using?
    1.9, it works with 1.8

  • Did this work before?
    I don't know, probably stopped working at some time. This is the first time i tried.

Most helpful comment

@GustavoRSSilva Yes, it is.
You can use this one. https://cdnjs.com/libraries/slick-carousel

All 7 comments

Downgrading to the version 1.8 made it work.

The problem lies here.

http://cdn.jsdelivr.net/gh/kenwheeler/[email protected]/slick/slick.min.js

@GustavoRSSilva v1.9.0 has not release yet.

You can check official release list on this link

@failtus I was just following the README.

screenshot from 2018-07-06 14-59-50

As you can see it is pointing to the 1.9.0 version. It is misleading.

@GustavoRSSilva Yes, it is.
You can use this one. https://cdnjs.com/libraries/slick-carousel

Awesome beginner tip: include this lib by URL that returns 404.
Nice guide.
The developer hints at the start that bugs in the documentation are fully guaranteed
Many thanks to developer.

We鈥檙e pushing 1.9.0 to NPM shortly. My apologies for that.

I checked with @kenwheeler. Apparently 1.9 had a lot of bugs so he pulled it off NPM. I will revert the documentation

Was this page helpful?
0 / 5 - 0 ratings