Not properly loading jquery dependency (enqueued script)

So I have this: what I’m doing wrong? as the slider is not loading and returns error that indicates the dependency jquery not being loaded.


		if(is_page( array( 'inicio','portafolio'))) {
		wp_enqueue_style( 'slick', 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css',false,'1.1','all');
		wp_enqueue_style( 'slicktheme', 'https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick-theme.css',false,'1.1','all');

		wp_enqueue_script( 'slick-slider', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js', array( 'jquery' ), '1.9.0', true );
		wp_enqueue_script( 'script-slicks-lider', get_template_directory_uri() . '/js/script-slick-slider.js', array( 'slick-slider', 'jquery' ), '1.0', true );

	}} );



Source link