Created
May 6, 2021 20:43
-
-
Save kpittman-securus/311d2018d7aff3148763704b1199ad0b to your computer and use it in GitHub Desktop.
Add Sizzle to window (jQuery selector engine)
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
const sizzleScript = document.createElement('script'); | |
sizzleScript.src = 'https://cdn.jsdelivr.net/npm/sizzle@latest/dist/sizzle.min.js'; | |
document.getElementsByTagName('head')[0].appendChild(sizzleScript); | |
window.sz = window.Sizzle; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment