Order of jQuery/popper file includes backwards
Created by: catchmyfame
On the page https://getbootstrap.com/docs/4.5/getting-started/download/#bootstrapcdn it says:
If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js before it.
It then shows an example of
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
See the issue? The example shows popper after jQuery, but the docs say it should come before it.
The error appears to exist in the description, and not the example. I suggest changing:
If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js before it.
to:
If you’re using our compiled JavaScript, don’t forget to include CDN versions of jQuery and Popper.js after it.