JS order and Errors

1 reply · opened Feb 22, 2017

DdritirFeb 22, 2017

I am getting this errors on my chrome console, and many js features do not work.
I used this tool: http://support.semicolonweb.com/js-package-generator/

Could you please provide an order for JS loading? I am using rails and all js is preloaded in a specific order. There are so many files that I am getting lost here.

Infinite Scroll not defined.
plugins.self-a438b0b….js?body=1:472 Animsition: Element does not exist on page.
plugins.self-a438b0b….js?body=1:472 Animsition: Does not support this browser.

SSemicolon WebSTAFFFeb 23, 2017

Hello,

Apologize about the Inconveniences caused!

Do you by any chance using TurboLinks?

If yes, one of our Users solved it by using the following Solution:

The ONLY thing that worked for me was to circumvent the asset pipeline the "Rails way." I explicitly included all my JS at the end of my application.html.erb file.

true %>
...
(same for any other JS needed)

I then had to include these lines in my assets.rb file

Rails.application.config.assets.precompile += %w( jquery.js )
...
(same for any other JS files)

I included all the necessary JS files for the template in the vendor/asset folder rather then the app/asset folder.

This should work fine for you too. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard