For some projects im working on I thought it would be a good idea to combine some plugins which are used in the entire site (jQuery, Popper, Bootstrap) into one file (vendors.min.js). This is working great. But certain other plugins stop functioning as soon as I add them to vendors.min as well.
Example: For certain sites I use waypoints.js to trigger animations. When I include waypoints.js separately from vendors.min.js
<script src="js/vendors.min.js"></script> <script src="js/jquery.waypoints.min.js"></script>
everything is working ok, but when I add the complete jquery.waypoints.min code at the end of vendors.min.js it stops functioning!! The same happens with another plugin (jquery.bootstrap-autohidingnavbar.js)
What can be the reason for that to happen? Thank you