1

Why does bxslider not loading in the beginning but works when I refresh the page? I already begin with $(document).ready(function(){});

I'm building it on Rails FYI.

https://photos4humanity.herokuapp.com/galleries If you click on gallery, you will see a black page, then if you refresh it appears. Also it is not showing when I just click onto the link from the nav bar. It should look like this enter image description here

Rex
  • 238
  • 2
  • 13
  • It's working for me in Firefox. Could it be a Chrome problem? – PJSCopeland Feb 11 '16 at 03:56
  • nope it's still not working. When you click onto the link from the nav bar, or access it from the photo, it does not work. I just tried with Safari – Rex Feb 11 '16 at 05:57

1 Answers1

1

Ok, so after some troubleshooting, it's a rails specific situation. Turbolink that came with Rails prevented the site to reload. So download the jquery-turbolink gem will work.

JQuery gets loaded only on page refresh in Rails 4 application

Community
  • 1
  • 1
Rex
  • 238
  • 2
  • 13