thausmann Posted July 4, 2020 Share Posted July 4, 2020 Hey, I just refactored my site to use markup regions and noticed slower responses / rendering times by two-four times. I'm having a landingpage with a Pagetable that has 15 blocks, most of them have a little CSS with mediaqueries that I can now put in the header with pw-append, which is nice, but seems especially costly to do it 15 times. I put together a minimal example showing the speed impact: https://gist.github.com/timohausmann/e7643d75e26135450dab63e33c94de8f This effect scales up so my real page went from 600ms to 3.2s. The page gets cached in the end so it's not a total deal breaker, but I'm wondering if I'm doing something wrong, or if this is normal and markup regions and pw-append aren't designed to be used repeatedly? Thanks for reading! Link to comment Share on other sites More sharing options...
fliwire Posted October 29, 2020 Share Posted October 29, 2020 for those who experience the same problem on windows, especially large html content. <div id="content">...</div> // 10x slower for me <region id="content">...</region> // fast no problem Link to comment Share on other sites More sharing options...
Pixrael Posted October 29, 2020 Share Posted October 29, 2020 I always use: <pw-region id="content">...<pw-region> ..works like a charm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now