Delay of loading left sidebar , filling this with script

In a page on my Laravel site , i have a left sticky navigation sidebar and i am filling this with a script because i want dynamic links.But the specific script is after app.js , so firstly the page renders and when document is ready the script is running and thus i have a very short delay , what can i do? thanks in advance

If you’re using Laravel, why not populate the menu in PHP?

If you have to render it in javascript and there is a delay, you could put an animation on the menu so it pops out after a certain amount of time. Without code it’s just guesswork.