With Web.dev article (https://web.dev/content-visibility/) boasting about amazing performance benefits about new css property content-visibility: auto
, I am confused as to where this should be added in vue app?
Should I just add it in the App.vue
root div?
<template>
<div style="content-visibility: auto">
<router-view></router-view>
</div>
</template>
Other options which I can think of
- Added to each root div of the pages?
- Added to each sections of the pages (in a big page, to each component)?