$(function() {
  window.gcb = {
    _XSSI_PREFIX: ")]}'",
    parseJsonResponse: function(responseString) {
      return JSON.parse(responseString.replace(this._XSSI_PREFIX, ''));
    }
  };

  var modules = {
    // TODO(jorr): Bring Butterbar in here.
    collapse: {
      js: ['_static/collapse/collapse.js'],
      css: ['_static/collapse/collapse.css']
    },
    list: {
      js: [],
      css: ['_static/list/list.css']
    },
    lightbox: {
      js: ['_static/lightbox/lightbox.js'],
      css: ['_static/lightbox/lightbox.css']
    }
  };
  var base = '/modules/core_ui/';

  $.each(modules, function(name, module) {
    $.each(module.css, function(_, uri) {
      $('head').append($('<link rel="stylesheet">').attr('href', base + uri));
    });
    $.each(module.js, function(_, uri) {
      $('body').append($('<script>').attr('src', base + uri));
    });
  });
});

@@ -1,9 +1,8 @@
-$
 (functio
@@ -7,16 +7,16 @@
 ion() %7B%0A
+
   window
@@ -585,178 +585,464 @@
 %0A%0A  
-$.each(modules, function(name, module) %7B%0A    $.each(module.css, function(_, uri) %7B%0A      $('head').append($
+for (var name in modules) %7B%0A    if (! modules.hasOwnProperty(name)) %7B%0A      continue;%0A    %7D%0A    var module = modules%5Bname%5D;%0A    for (var i = 0; i %3C module.css.length; i++) %7B%0A      var uri = module.css%5Bi%5D;%0A      var link = document.createElement
 ('
-%3C
 link
- rel=%22stylesheet%22%3E').attr('href', base + uri));%0A    %7D);%0A
+');%0A      link.setAttribute('rel', 'stylesheet');%0A      link.setAttribute('href', base + uri);%0A      document.head.appendChild(link);%0A    %7D%0A  %7D%0A%0A  $(function() %7B%0A    $.each(modules, function(_, module) %7B%0A  
     
@@ -1074,24 +1074,26 @@
 n(_, uri) %7B%0A
+  
       $('bod
@@ -1139,24 +1139,34 @@
 se + uri));%0A
+      %7D);%0A
     %7D);%0A  %7D)
@@ -1167,12 +1167,14 @@
 ;%0A  %7D);%0A
-
 %7D)
+()
 ;%0A

Fix flash-of-unstyled-content Change on 2015/10/22 by jorr <jorr@google.com> ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=106069765