Load external js file with crossorigin check in WordPress 12 January 2021 by martijn Let’s say we want to load jQuery. Not the one WordPress gives us, but a version we tested on and know for sure everything is going to work. As normal, we deregister (in functions.php) WordPress jQuery, register our own and enqueue the script.