Skip to content

Commit

Permalink
Pre-fetch search index to avoid latency in input field
Browse files Browse the repository at this point in the history
  • Loading branch information
guruz committed Aug 10, 2016
1 parent aef4f94 commit d34da56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/codebrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,8 @@ $(function () {
$("#symbolSideBox ul").hide()
}

// Pre-fetch index. The XMLHttpRequest above will take it from browser cache then
$("head").append('<link rel="prefetch" href="'+root_path + '/fileIndex'+'">');

/*-------------------------------------------------------------------------------------*/
// End: print the time that was required to execute the code browser javascript
Expand Down

0 comments on commit d34da56

Please sign in to comment.