How do I load an external file and make sure that it runs first in JSFiddle?

后端 未结 4 2067
礼貌的吻别
礼貌的吻别 2021-02-12 14:24

I have a JsFiddle here, and added Microsoft AJAX to be loaded through external JS/resource section. How can I tell whether or not my JS code is run after the AJAX file has finis

4条回答
  •  太阳男子
    2021-02-12 15:19

    @Jpsy's approach no longer seems to work (see my comment under his answer).

    For me, adding the resource under External Resources also didn't work. (According to the Firefox Debugger, it couldn't find the resource).

    The only way I was able to get an external bit of JavaScript code (in my case jquery.backstretch.js) to work, was to use Google to find a Fiddle which used this resource (and worked), then Fork this Fiddle and copy/paste all my code into the HTML, CSS and JavaScript panels. Ugh!

提交回复
热议问题