jeromeetienne / tquery

extension system for three.js
http://jeromeetienne.github.io/tquery/
MIT License
651 stars 120 forks source link

Do tQuery.require #175

Closed jeromeetienne closed 12 years ago

jeromeetienne commented 12 years ago
jeromeetienne commented 12 years ago

docs which can be usefull http://stackoverflow.com/questions/538745/how-to-tell-if-a-script-tag-failed-to-load

jeromeetienne commented 12 years ago

only async

tQuery.require([name], [deps], fn);
  1. load all the deps
  2. call the function
jeromeetienne commented 12 years ago

possible to pack multiple require in a single file using the name parameter

jeromeetienne commented 12 years ago

Surprisingly simple :)

jeromeetienne commented 12 years ago

All in jerome_etienne ezrequire.js

jeromeetienne commented 12 years ago

I switched it all to official require.js