I have a modal in my page. When I try to call it when the windows load, it prints an error to the console that says :
$(...).modal is not a function
The problem happened to me just in production just because I imported jquery with HTTP and not HTTPS (and production is HTTPS)