M
M
Maria Popova2016-09-15 14:40:25
JavaScript
Maria Popova, 2016-09-15 14:40:25

How to make the script run on page load?

There is an owl carusel script on the site, but it only starts working when you click on it. What are the assumptions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2016-09-15
@glebovgin

Suggestion - read the documentation .

$(document).ready(function() {
   $("#owl-example").owlCarousel();
 });

And then it all depends on other carousel settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question