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'); }); 

Comments

Post a Comment

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -