Loading element conditionally based on url string causes layout shift / delay in appearance

i’m loading templates (sliders) conditionally based on url string for some product archive categories or search archives. there is a noticeable shift on page load as most elements have begun to load by the time the slider also loads after a delay.

i feel like this is not the best way to achieve this. any tips would be appreciated.

bump‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎