Created
November 2, 2022 15:45
-
-
Save codearachnid/952b410fc927a481e2a2e3352bd95995 to your computer and use it in GitHub Desktop.
Make sure jquery can run inline before lib is loaded in footer of the page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.addEventListener("load", function () { | |
$(function () { | |
$("body").append("<p>jQuery is available now!</p>"); | |
// Run my big jQuery function | |
}); | |
}, false); | |
</script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment