Defer our large JavaScript parsing until later
The host page data doesn't have to be on the page until after the rest of the UI on the page has been able to be created. Move it to the end of the page and mark it defer so the browser can avoid running this large block of JavaScript until the other UI has had a chance to layout. Change-Id: Id7f70092a428961c937bf03001905470bdda9f3a Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -30,8 +30,8 @@
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
<script id="gerrit_hostpagedata"></script>
|
||||
<script id="gerrit_module" type="text/javascript" language="javascript" src="gerrit/gerrit.nocache.js"></script>
|
||||
<script id="gerrit_hostpagedata" defer="defer"></script>
|
||||
<script id="gerrit_module" defer="defer"></script>
|
||||
<script src="prettify/20090521.js" type="text/javascript" language="javascript" defer="true"></script>
|
||||
<style id="gerrit_sitecss" type="text/css"></style>
|
||||
<link rel="icon" type="image/gif" href="favicon.ico" />
|
||||
|
Reference in New Issue
Block a user