¡@

Home 

2014/10/16 ¤W¤È 12:03:29

jquery Programming Glossary: foo.js

Require.js bug random Failed to load resource

http://stackoverflow.com/questions/17026036/require-js-bug-random-failed-to-load-resource

the next script runs since it's loaded with async attribute . script data main js main src js lib require.js script foo.js might run before js main.js script src js foo.js script You can prove this by adding a console.log statement at the end.. attribute . script data main js main src js lib require.js script foo.js might run before js main.js script src js foo.js script You can prove this by adding a console.log statement at the end of js main.js and one in foo.js or whatever . Normally.. script src js foo.js script You can prove this by adding a console.log statement at the end of js main.js and one in foo.js or whatever . Normally you will see the one from js main.js and then foo.js but in that 1 out of 50 case you'll see them..

What is meant by ?œleaking??into global scope?

http://stackoverflow.com/questions/5951228/what-is-meant-by-leaking-into-global-scope

define function obj this defines a module. The concept here is that you multi file code as follows main.js require foo.js bar.js ... function foo bar ... do stuff foo.js function var namespace modulePatternCode ... define namespace bar.js function.. concept here is that you multi file code as follows main.js require foo.js bar.js ... function foo bar ... do stuff foo.js function var namespace modulePatternCode ... define namespace bar.js function var namespace modulePatternCode ... define..