diff options
author | Andrew Gerrand <adg@golang.org> | 2013-07-30 14:22:14 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-07-30 14:22:14 +1000 |
commit | d920d8d8493635ff91194a28332b904dbf819214 (patch) | |
tree | 580446b545e4971b48ce60c387c64c4db79fed2e /doc/codewalk/codewalk.js | |
parent | 789e1c351e6fca96fe3cec467029732c03d55d64 (diff) | |
download | go-git-d920d8d8493635ff91194a28332b904dbf819214.tar.gz |
doc: don't block page load on JavaScript fetch
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12050045
Diffstat (limited to 'doc/codewalk/codewalk.js')
-rw-r--r-- | doc/codewalk/codewalk.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/codewalk/codewalk.js b/doc/codewalk/codewalk.js index eb4667ac0c..7bfcd39384 100644 --- a/doc/codewalk/codewalk.js +++ b/doc/codewalk/codewalk.js @@ -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(); |