Well, there are plenty of ways that is failing to load before the jQuery, but the best way to fix it is to make the scripts async, so they will load properly
Hello, not that wouldn't work. jQuery is loaded synchronously, but OWL y ASYNC.
When using Posts, Neuron is injecting the Owl carousel JS inline in the page. ( attached screenshot ) Since jQuery is sync and Owl Async document ready is always called before OWL has been loaded and compiled.
This is an JS logic error on the theme and should be solved on your side, there are plenty of ways of doing it properly.
I am very sorry for the late reply, we did not work on the Weekend & Friday, due some holidays.
Oh sorry about that part, we include it inline for that reason to make it work even in Editor, we'll add some updates in the upcoming update(2.1.0), it will cover that part as well.
You can defer that link by simply adding defer attribute.
Hello, on Safari the Owl Carousel on my index page is not loading because, the Owl function is called before the library has been loaded.
Error:
error: undefined is not a function (near '...owl.owlCarousel...')
jQuery(document).ready(function($) {
var owl =('#8e0d53e0bcb7a41fe031902cb8ccaac3');
owl.owlCarousel({
jQuery is loaded before OWL Carousel, triggering the function before OWL has been loaded.
Hi Federico,
Well, there are plenty of ways that is failing to load before the jQuery, but the best way to fix it is to make the scripts async, so they will load properly
Please check the following plugin.
- https://wordpress.org/plugins/async-javascript/
It will add defer value to all your javascripts.
Kind Regards
Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.
Hello, not that wouldn't work.
jQuery is loaded synchronously, but OWL y ASYNC.
When using Posts, Neuron is injecting the Owl carousel JS inline in the page. ( attached screenshot )
Since jQuery is sync and Owl Async document ready is always called before OWL has been loaded and compiled.
This is an JS logic error on the theme and should be solved on your side, there are plenty of ways of doing it properly.
Hi Federico,
I am very sorry for the late reply, we did not work on the Weekend & Friday, due some holidays.
Oh sorry about that part, we include it inline for that reason to make it work even in Editor, we'll add some updates in the upcoming update(2.1.0), it will cover that part as well.
You can defer that link by simply adding defer attribute.
- https://prnt.sc/sedypf
Feel free to ask for anything you need.
Kind Regards
Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.