doc: don't block page load on JavaScript fetch

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12050045
This commit is contained in:
Andrew Gerrand 2013-07-30 14:22:14 +10:00
parent 789e1c351e
commit d920d8d849
5 changed files with 72 additions and 64 deletions

View file

@ -296,7 +296,7 @@ CodewalkViewer.prototype.updateHeight = function() {
this.sizer.height(codeHeight);
};
jQuery(document).ready(function() {
window.initFuncs.push(function() {
var viewer = new CodewalkViewer(jQuery('#codewalk-main'));
viewer.selectFirstComment();
viewer.targetCommentLinksAtBlank();