JavaScript Theming, a Paradigm Shift

Oleg Terenchuk (litwol) is now developing the JavaScript Theming module. The five second elevator spiel: this will move theming from the server to the client.
The longer explanation is a bit more exciting. This module plans to abstract the core of Drupal theming into a javascript layer. This will allow a JSON feed to pass raw data to a browser to be formatted on the fly for display.
The implications are astounding, and I'm still wrapping my brain around the possibilities. For one, it could mean super fast in place load times, because Drupal doesn't have to mess around with passing everything around the theming system. An AJAX request could just ask for the data, Drupal sends it, and jQuery will format your list, table, teaser, or what have you. In its second day of life, it already works with messages (and item lists, I believe).
A potential problem I see might be that slower computers would see slower rendering times. But this is already happening with some jQuery-heavy sites anyway. The benefit would be most seen with faster hardware, but this is always true with cutting-edge technology. Everyone else will catch up soon enough.
In any case, I have a feeling that by this time next year, I'll be blogging about the killer combo that changed the world of Drupal and is sending ripples through the Internet: Embed Widgets + JavaScript Theming...
PS Come to DrupalCampNYC next month to find out more!

Contact Us

About Aaron Winborn

Aaron Winborn was Advomatic's first full time hire in 2006, and is a very active leader in the Drupal community. His first book, Drupal Multimedia is now available from Packt Publishing.

AdvoTwitter

  • RT @eff: If you're a U.S. citizen who lost non-infringing personal files to #Megaupload, please contact us here: http://t.co/O5QDEDYu
    February 3, 2012 - 6:34pm
  • RT @mlsif: Wael @Ghonim and David Gergen at JFKForum on Revolution 2.0 #tahrir #Egypt http://t.co/OPj2ysKp
    February 3, 2012 - 4:21pm
  • RT @ravenb: A cautionary tale: How Komen flushed their brand in 24 hours http://t.co/3u8BjBXZ #p2 #fem2 #nptech
    February 2, 2012 - 9:15pm
  • Hiring a #drupal developer! Come work with us (live anywhere) http://t.co/7bZFtXcj
    February 2, 2012 - 5:01pm
  • RT @abigailcollazo: We're proud to be hosting the Women's Caucus at #Roots12! Join us if you care about women's participation and...
    February 1, 2012 - 6:20pm