Canvas 6 Plugin could not be loaded

3 replies · opened Jun 7, 2020

JjauwaadJun 7, 2020

I am migrating my CMS theme to support Canvas 6.

I get the following error for most of the plugins.*.js files
plugins.easing.js: Plugin could not be loaded

It's looking for the file in the root of the site instead of the local folder where functions.js exists.

SSemicolon WebSTAFFJun 8, 2020

Hello,

The New js/functions.js File uses Async JS Loading. By default, all the plugins.*.js Files are in the same Folder as js/function.js File and are loaded from the js/ Folder. However, in case, if your js/ Folder is at a different location you can simply add the following code anywhere on your Page just before the js/functions.js JS File Linking:


window.scwJsPath = 'your-custom-js-folder-location';

Make sure that this is an absolutely URL. Ex: https://your-website/wp-content/themes/your-theme/js. This would make sure that the Plugins JS Files are always loaded from this Folder.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjauwaadJun 9, 2020

Thank you. The function.js and the plugins.*.js are in the same directory but in the themes folder. For some reason it doesn't pick it up. The window.scwsJsPath works for now.

SSemicolon WebSTAFFJun 9, 2020

Hello,

Since the JS Files are loaded using AJAX, the JS Files are looked up in the same js/ Folder location as the HTML File. So to keep a fixed location, window.scwsJsPath is used.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

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