question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slick 1.9.0 script tag is not loading

See original GitHub issue

cdn.jsdelivr.net/gh/kenwheeler/slick@1.9.0/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/slick@1.9.0/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/slick@1.9.0/slick/slick-theme.css"/>

Then, before your closing <body> tag add:

<script type="text/javascript" src="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.9.0/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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
Zulcomcommented, Aug 1, 2018

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.

4reactions
failtuscommented, Jul 7, 2018

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Slick Slider is not loading in Browser - Stack Overflow
I was not including https: in my link tag and in one of the three script. Plunker was able to load the files...
Read more >
How to load slick.js from CDN - Mogu Blog
I gather CDN of slick.js which can make slider easily. CSS is also included in below code, so it is easy to adjust...
Read more >
slick-carousel-latest - npm
Accepts 'ondemand' or 'progressive' for lazy load technique. 'ondemand' will load the image as soon as you slide to it, 'progressive' loads one ......
Read more >
slick - the last carousel you'll ever need - Ken Wheeler
slick is a responsive carousel jQuery plugin that supports multiple breakpoints, CSS3 transitions, touch events/swiping & much more!
Read more >
TypeError: $(...).slick is not a function in jQuery | bobbyhadz
To solve the "$(...).slick is not a function" jQuery error, make sure to load the jQuery library before loading the slick library. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found