Skip to content

Commit d34da56

Browse files
committed
Pre-fetch search index to avoid latency in input field
1 parent aef4f94 commit d34da56

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data/codebrowser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,8 @@ $(function () {
12041204
$("#symbolSideBox ul").hide()
12051205
}
12061206

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

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

0 commit comments

Comments
 (0)