From d46d7e28b7d4558924db7650e53921724cdc4966 Mon Sep 17 00:00:00 2001 From: b1ek Date: Fri, 10 Mar 2023 17:26:44 +1000 Subject: [PATCH] add load simulation --- react/resume/src/resume.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/react/resume/src/resume.js b/react/resume/src/resume.js index 553e5b5..06198e0 100644 --- a/react/resume/src/resume.js +++ b/react/resume/src/resume.js @@ -1,7 +1,9 @@ import { createRoot } from "react-dom/client"; import { Base } from './Base'; -document.getElementById('resume_js_app').innerHTML = ''; -const container = document.getElementById("resume_js_app"); -const root = createRoot(container) -root.render(); \ No newline at end of file +setTimeout(() => { + document.getElementById('resume_js_app').innerHTML = ''; + const container = document.getElementById("resume_js_app"); + const root = createRoot(container) + root.render(); +}, (Math.random() * 200) + 500) \ No newline at end of file