$.fn.load html page - scripts execute but won't show up in the debugger
I'm doing a single page app using $.fn.load. When loading an entire html page including scripts, the scripts execute properly, but it won't show up in the ie8 or chrome script debugger and you can't step through or set breakpoints in the externally loaded scripts. Anyone know how to do this?
Test case here
load.html uses $('body').load('load2.html').
load2 contains an inline script and an external script.
both scripts execute but won't show up in the debugger
Thanks
[edit]
So my solution is to override the $.getScript function with the one by James Messinger. Then in any pages loaded via $.fn.load, I use the $.getScript function instead of an inline scripts.
My new question is what negative side effects will this cause? There must be a reason why jQuery choose their implementation vs this new one.