-
-
Save monkpit/c439dd7545c62b4ad615da51ca3340f1 to your computer and use it in GitHub Desktop.
Add Sizzle to window (jQuery selector engine)
This file contains hidden or 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