javascript - How do I load remote script in jQuery noConflict mode? -
i want load remote script not utilizing jquery noconflict mode wordpress website, is. need wrap remote script in noconflict mode. thought trick, apparently not.
<script> jquery.noconflict(); jquery(document).ready(function($) { $.getscript('http://remote-domain.com/load/remote/script'); }); </script>
i thought straightforward, couldn't see remote scripts on googling , checking other stack overflow questions. possible? missing something? being dim?
see codepen featuring actual script having issues with
no conflict should done 1 once before scripts. see no other problems in code.
but keep in mind, jquery ajax request file , use remote url. there might problems when browser and/or server dosesn't allow this.
jquery.noconflict(); jquery(function() { jquery.getscript('http://remote-domain.com/load/remote/script'); });
Thanks for give us valuable information
ReplyDeleteWordPress Support Australia
WordPress Support Number