S
S
Satir012015-08-27 20:17:39
CMS
Satir01, 2015-08-27 20:17:39

Why does the console say error in js?

I use swiper slider as a slider, as well as fancybox for galleries.
Neither one nor the other works.
About the slider, the console "says" an error, they say

TypeError: $(...)[actionDom] is not a function

And the same goes for fancybox
TypeError: $(...).fancybox is not a function

Please turn your nose in the right direction.
At the same time, everything works locally.
UPD. Really it is necessary to push scripts in header?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mak Alexey, 2015-08-27
@Satir01

Scripts can be pushed anywhere, the main thing is that you do not try to call them before they are loaded.

$( document ).ready(function() {
   ...
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question