mirror of
https://github.com/golang/go.git
synced 2025-11-01 17:20:56 +00:00
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:
parent
789e1c351e
commit
d920d8d849
5 changed files with 72 additions and 64 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue