slick icon indicating copy to clipboard operation
slick copied to clipboard

Different .min.js and .js

Open sanathkash opened this issue 7 years ago • 7 comments

When I used slick in my most recent project and when my code was integrated with AEM we noticed that the slick.min.js and slick.js files had different code for the slick load functionality. The slick.min.js file was behaving as expected and the slick.js was not. So we just unminified the slick.min.js and used that instead of slick.js. Please look into this issue and resolve it at the earliest so that others will not face the same issue.

sanathkash avatar Dec 03 '18 07:12 sanathkash

Same the minified version works, but the other does not.

RaymondBakker avatar Dec 11 '18 12:12 RaymondBakker

we see the same issue here... slick renders elements differently (adding extra div elements in slick.js but not in slick.min.js). this breaks our code because we expect the elements to be rendered in dev/production builds in the same way

KennethVerbeure avatar Apr 30 '19 12:04 KennethVerbeure

Same here.


slick.js adds additional divs around slides, slick.min.js - does not.

AndreyYevtukhov avatar Jan 28 '20 14:01 AndreyYevtukhov

it looks like the min.js is stuck at version 1.8.0, so it's missing a few commits. So as a workaround, you can probably just minify slick.js yourself

flack avatar Mar 07 '20 17:03 flack

Reverse situation here: slick.min.js breaks centerMode, while slick.js centerMode works: the minified version add a width: NNNpx;transform: translate3d(-NNNpx, 0px, 0px). The value of NNN is width - something_not_identified.

fgm avatar Apr 09 '20 08:04 fgm

Similar to fgm, slick.min.js isn't working correctly for me, but slick.js is.

For info, my issue was with asNavFor not syncing when scrolling. It was scrolling about 20% further than expected, so by the time image 5 was displayed in the top slider, the thumbnail had already scrolled past.

Codename-Duchess avatar Sep 10 '21 15:09 Codename-Duchess

Suffering from the same issue with Slick. Is there any update on this as it is almost a 5-year-old issue.

darrencoutts118 avatar May 15 '23 11:05 darrencoutts118