The freshly minted CSS feature known as the content-visibility
property seems like a promising technique to boost the loading speed of web pages.
I am considering implementing it in my website's footer:
<footer style="content-visibility: auto;">
(...)
</footer>
Since the footer is typically located at the bottom of the page structure, this property allows it to be rendered later on the screen for all pages across my site.
However, within my footer reside a multitude of JavaScript libraries that are incorporated through various <script>
tags within the footer itself.
These scripts have different loading methods - some are eagerly loaded, others deferred, and some are asynchronously loaded. (Yes, quite a lot of scripts, unfortunately).
Therefore, my query is:
Will the use of the content-visibility
property impact the loading of these scripts in any manner?
or will the scripts load normally regardless of the application of the CSS property?
I'm reaching out here because this appears to be a relatively new and somewhat mystical concept to me, and I haven't come across much relevant documentation. Thank you in advance for any insights on this matter.