In order to optimize the load of my document, I use to load jquery async like that
<script async type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
Then I call a script using jquery :
<script type="text/javascript">
jQuery(document).ready(function() {
App.init();
OwlCarousel.initOwlCarousel();
FancyBox.initFancybox();
StyleSwitcher.initStyleSwitcher();
});
</script>
It returns me that jquery is not defined.
I don't know what should I use, I though that .readyfunction would wait untill all document is loaded before calling it.
the same for boostrap library, It tells me that jquery is not defined.
I've tried to ask the script to be loaded at the end, but it still does not work properly.
Anykind of help will be much appreciated.