You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to HTMX so this may be lack of experience but I'm adding HTMX to an application that loads different style sheets for each page.
I've added hx-boost="true" hx-ext="head-support" to my body tag and the result is fantastic. My application feels much more responsive.
However I do perceive a quick flicker when a page loads. I'm guessing that this happens because the body is rendered before the head support has replaced the link element, or at least before the styles are available (I guess they load asynchronously)?
Is this expected behaviour and if so what would you recommend as a solution?
I could put all styles in a single file so that the head links don't change but I quite like having my CSS being modular.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm new to HTMX so this may be lack of experience but I'm adding HTMX to an application that loads different style sheets for each page.
I've added
hx-boost="true" hx-ext="head-support"
to my body tag and the result is fantastic. My application feels much more responsive.However I do perceive a quick flicker when a page loads. I'm guessing that this happens because the body is rendered before the head support has replaced the link element, or at least before the styles are available (I guess they load asynchronously)?
Is this expected behaviour and if so what would you recommend as a solution?
I could put all styles in a single file so that the head links don't change but I quite like having my CSS being modular.
Beta Was this translation helpful? Give feedback.
All reactions