index.html: load packages.json synchronously

If it loads asynchronously, then all content after the table of packages,
e.g. #creating-packages  moves down, making it impossible to make
a reference to this content.
This commit is contained in:
Boris Nagaev 2016-12-20 09:28:18 +01:00
parent c098cd5f6c
commit ef22fd5843
1 changed files with 1 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
<script>
function loadPackageCache(doneCallback) {
var request = new XMLHttpRequest();
request.open('GET', 'packages.json', true);
request.open('GET', 'packages.json', false);
request.onreadystatechange = function reqCallback() {
if (request.readyState === 4) {
if (request.status === 200) {