From 48abc07814fe710d5c392f3ed9933a54f4046577 Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Fri, 1 Jan 2021 18:17:18 -0800 Subject: [PATCH] docs: load version selector with delay --- docs/assets/versions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/assets/versions.js b/docs/assets/versions.js index 41ef69fa..9a66c791 100644 --- a/docs/assets/versions.js +++ b/docs/assets/versions.js @@ -1,4 +1,4 @@ -(function() { +setTimeout(function() { const callbackName = 'callback_' + new Date().getTime(); window[callbackName] = function (response) { const div = document.createElement('div'); @@ -22,5 +22,4 @@ 'callback=' + callbackName + '&project=argocd-notifications&page=&theme=mkdocs&format=jsonp&docroot=docs&source_suffix=.md&version=' + (window['READTHEDOCS_DATA'] || { version: 'latest' }).version; document.getElementsByTagName('head')[0].appendChild(script); -})(); - +}, 50);