Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Improved JS2 / script-loader documentation

 

 

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


mdale at wikimedia

Sep 11, 2009, 8:35 AM

Post #1 of 1 (426 views)
Permalink
Improved JS2 / script-loader documentation

I did some improvements to the JS2 documentation based on some initial
feedback of early adopters ;) The documentation has been on the
mediaWiki.org site here: http://www.mediawiki.org/wiki/JS2_Overview

== Who is this documentation for? ==
* This documentation is for any extension developer that uses javascript
and gadget developers.
* With some minor changes to how your extension includes javascript; it
can greatly improve initial page load time (by minifying, gzips, and
grouping javascript requests)
* With more effort you can build javascript interfaces that are loaded
on-demand and package all localized msgs into the JS. This can really
improve perceived performance even on 'cached scripts' pages by keeping
initial page js parsing and loading to a minimum.
* If these interfaces are reusable and generally applicable to more than
a single extension, we can ideally package them in a central location
making it easier to build off of each-others js components. (similar to
the jquery.ui, jquery plugins and the development path for the new
usability tool-bar and media components).

* I would not recommend switching over your js calls until an official
release contains the new code ;)
** (Once you do update your js include calls, you can still disable the
script-loader to get what you had before)
* Now would be a good time to start testing and give feedback.

peace,
--michael


_______________________________________________
Wikitech-l mailing list
Wikitech-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.