Hi,

Has this been discussed before? In a nutshell this diagram illustrates the
idea:

http://i.imgur.com/X1n57iQ.png

   - Rather than referencing a url in <script> or <style> tags, we require
   the browser to load name-spaced, versioned libraries. For example:
   com.jquery:jquery:1.0.
   - This can either be done using the <script>/<style> tags similar to
   <script module="com.jquery:jquery:1.0"/> or <style
   module="com.jquery:jquery:1.0" /> or probably programmatically too: (in a
   JS file: require "com.jquery:jquery:1.0")
   - There will be a central placed governed by W3C, for example, that can
   host libraries. Third-party repositories could also exist and be used
   (e.g. <script module="com.jquery:jquery:1.0" repository="cdn.jquery.com
   "/>
   - One benefit of this is dependency management. If jquery, for example,
   depends on lodash, it also gets downloaded and loaded automatically.

This is just the core of the idea. Nothing new (already similar systems are
available for Java, Node, .NET, Ruby, etc.) but this will bring it to the
web.

What do you think?
-- 
Best regards,
Behrang Saeedzadeh
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to