- This topic has 3 replies, 2 voices, and was last updated 3 weeks, 6 days ago by David.
August 31, 2020 at 2:47 am #142475493487u5tr938ouh4trnos8fyoh
According to this article, there is a new CSS property,which is “content-visibility” that dramatically boost the rendering performance.
content-visibility: the new CSS property that boosts your rendering performance:
The web.dev portal is operated by Google and is aimed at Chromium related browsers and the web in general.
With the recent change of Microsoft serving an Edge browser that uses the Chromium engine, I think the market share of the already dominant Chromium browsers family is growing even more.
It is important to mention that the crawling and rendering of the web content from the biggest search engine – Google is also happening with a the Googlebot running on a headless evergreen Chromium.
With the already release Web Core Vitals that would become a ranking factor, performance is getting even more important than before.
As GeneratePress always strive for performance excellence, I think implementing the content-visibility CSS property would dramatically boost the SEO and UX for the users.
Someone already mentioned that in the Facebook group and described that after a developer implement it, the performance boost was very solid, yet the implementation was not that hard.
https://web.dev/measure/ – This is web based Google Lighthouse performance test.
https://developers.google.com/speed/pagespeed/insights/ – Google PageSpeed Insights
As an internet marketer I urge you to implement this thing.
Thanks very much in advance!August 31, 2020 at 4:59 am #1424886DavidStaffCustomer SupportSeptember 1, 2020 at 9:38 am #142673893487u5tr938ouh4trnos8fyoh
If the words of the FB group user was that implementing it is just few lines of code for the theme, could we expect this to ship soon?September 1, 2020 at 11:22 am #1426865DavidStaffCustomer Support
Chrome has implemented what is still a draft specification CSS property. Firefox have deemed it ‘prototype worthy’, and other browsers are yet to implement this. This leads to an overarching concern that implementing Chrome specific CSS today ‘may’ create future issues if other browsers adopt the specification in a different way.
Where exactly the required CSS is placed will vary from one layout to another.
For archives it could be applied to each individual post element. This would probably work quite effectively. But would require testing when ajax, infinite scrolling or masonry is in place.
Other layouts – not so easy. Applying content-visibility to a single post or page container would probably provide no benefit as on intial load, part of that container is generally visible ( unless the user has a Full Screen hero above the post content ). Instead you would want to pass the property to elements within the content – that leads to the question as to whether this should be passed to Blocks rather then theme templates.
So there are a lot of things that need consideration and testing to implement what may only be a few lines of CSS. Of course there is nothing stopping users from applying the CSS themselves at this time.
- You must be logged in to reply to this topic.