javascript - jQuery: How to save my version of jQuery before third party script loads different version of jQuery? -


similar question reference: how run different versions of jquery on same page?

i have situation have own version of jquery(1.4.2), sorts of custom functions defined. version of jquery loaded before third party script, loads own version of jquery (1.4.3), , when script loaded somehow destroys custom functions had. third party script uses noconflict after jquery loaded. because of noconflict code, assume problem fixed if load third party script before else, environment such cannot guarantee this, can run custom javascript before and/or after loading script if load dynamically.

what wondering if there way can save/restore/protect own version of jquery custom methods accessible after third party script runs?

if can run custom code before , after script loaded believe it:

var $myjq = jquery.noconflict();  // load other script.  should move away $ , jquery variables // if calls noconflict.  var $ = $myjq; 

i believe gets you're after.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -