code: function () {
        var pending = 0;
        for (var url in oldLinkElements) {
          // if this sheet has any cssRules, delete the old link
          try {
            var link = currentLinkElements[url],
                oldLink = oldLinkElements[url],
                html = document.body.parentNode,
                sheet = link.sheet || link.styleSheet,
                rules = sheet.rules || sheet.cssRules;
            if (rules.length >= 0) {
              oldLink.parentNode.removeChild(oldLink);
              delete oldLinkElements[url];
              setTimeout(function () {
                html.className = html.className.replace(/\s*livejs\-loading/gi, '');
              }, 100);
            }
          } catch (e) {
            pending++;
          }
          if (pending) setTimeout(Live.removeoldLinkElements, 50);
        }
      }
docs: removes the old stylesheet rules only once the new one has finished loading