MrBertie/dokuwiki-plugin-searchindex — comment on commit 73c6efcd6d8a4f75f0c193ebfdfe99e616e7347e
File: script.js line 124
By splitbrain:

This is problematic. You assume that the clearing the index is done within one second and simply start the indexing process. You should start the indexing in the return callback of clear() instead.