Slick Carousel Uncaught TypeError: $(…).slick is not a function

前端 未结 15 1615
独厮守ぢ
独厮守ぢ 2020-12-10 00:18

Somehow I\'m unable to use slick carousel (http://kenwheeler.github.io/slick/) correctly.

I\'m getting the following error:

Uncaught TypeError: $(..         


        
15条回答
  •  难免孤独
    2020-12-10 01:08

    I found that I initialised my slider using inline script in the body, which meant it was being called before slick.js had been loaded. I fixed using inline JS in the footer to initialise the slider after including the slick.js file.

    
    
    

提交回复
热议问题