Comments (10)
All in all, this issue should not be reported here, because this is merely a gem that hooks slick itself https://github.com/kenwheeler/slick/
Still, judging by your description it seems you are using turbolinks. Is that correct? If yes, use https://rubygems.org/gems/jquery-turbolinks as well to restore original jQuery events.
from jquery-slick-rails.
Closed due to inactivity. If the suggested solution does not help, feel free to reopen the issue.
from jquery-slick-rails.
Unfortunately jquery.turbolinks doesn't work with turbolinks 5 (yet)
kossnocorp/jquery.turbolinks#56
New Turbolinks handles things better, but I still had issues with slick not initialising properly after a turbolinks:load event. However upgrading to slick 1.6.0 seemed to resolve it
from jquery-slick-rails.
Well, that's too bad, but please understand that this is simply a wrapper for the Slick library, so it's not the best place to report such issues. What I recommend doing is searching for similar issues on StackOverflow or asking a question... I will try and and see if I can update the demo app https://github.com/bodrovis/jquery-slick-rails-demo and introduce turbolinks there to reproduce the issue.
from jquery-slick-rails.
@raldred All in all, I was able to get it working with Turbolinks https://github.com/bodrovis/jquery-slick-rails-demo/blob/master/app/assets/javascripts/initialize.coffee#L1 You may use that demo app a reference.
from jquery-slick-rails.
I totally understand this gem is purely a wrapper for asset pipeline but I
thought it would be useful to let others know what's going on who arrive
here from searching as I did.
Yes using turbolinks:load does resolve it as long as you have the latest
jquery-slick-rails.
On Thu, 26 May 2016, 18:43 Ilya Bodrov-Krukowski, [email protected]
wrote:
All in all, I was able to get it working with Turbolinks
https://github.com/bodrovis/jquery-slick-rails-demo/blob/master/app/assets/javascripts/initialize.coffee#L1
You may use that demo app a reference.—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#16 (comment)
from jquery-slick-rails.
@raldred Okay, great. No more issues with turbolinks for now?
from jquery-slick-rails.
I am having trouble with turbolinks 5 still.
from jquery-slick-rails.
@chevinbrown Did you try to use this https://github.com/bodrovis/jquery-slick-rails-demo app as a reference? What issue are you having. P.S. And once again - this is a wrapper around Slick library, so I am not in charge of the JS code.
from jquery-slick-rails.
No, I solved it...I needed to wrap my slide images in an empty div...I'm not sure that's in the docs anywhere, but I'll follow up with the author. @bodrovis, thanks for the quick reply.
from jquery-slick-rails.
Related Issues (16)
- Vertical scrolling on Chrome Android is not working when I encounter the slider. HOT 3
- Latest Slick version?
- CSS3111: @font-face encountered unknown error HOT 13
- Modifying slick-style.css HOT 1
- Error: jquery-ujs has already been loaded! HOT 3
- File to import not found or unreadable: slick. on Windows HOT 1
- Could you release version 1.8.1?
- Possible issue with height? HOT 1
- Assets not found HOT 3
- Does it support rails 6 so far? HOT 3
- slick.css.map not found HOT 3
- Sass says file cannot be found slick. HOT 3
- Asset Pipeline not compiling fonts or images for theme HOT 1
- Theme is not referencing assets in the asset pipeline correctly HOT 1
- Slick's stylesheets is not included HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-slick-rails.