# Улучшение производительности Discourse с помощью content-visibility: auto

**URL:** https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967
**Category:** Feature
**Created:** [06.Август.2020 01:00:59 UTC](https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967 "2020-08-06T01:00:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [06.Август.2020 01:00:59 UTC](https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967/1 "2020-08-06T01:00:59Z")

</div>

> **[content-visibility: the new CSS property that boosts your rendering...](https://web.dev/articles/content-visibility)**
>
> The CSS content-visibility property enables web content rendering performance benefits by skipping rendering of off-screen content. This article shows you how to use this new CSS property for faster initial load times, using the auto keyword. You...

Это выглядит потрясающе. В частности, похоже, что это может минимизировать или полностью устранить необходимость использования виртуальной прокрутки в JavaScript на Android Chrome, что позволит Discourse значительно сократить объем JavaScript-кода, который нужно выполнять при загрузке страницы на Android.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [06.Август.2020 04:30:21 UTC](https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967/2 "2020-08-06T04:30:21Z")

</div>

@j.jaffeux протестировал это, и мы получили плохие, непоследовательные результаты.

---

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [06.Август.2020 04:50:37 UTC](https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967/4 "2020-08-06T04:50:37Z")

</div>

Можете рассказать подробнее? Я искал `content-visibility`, но ничего не нашёл на этом форуме.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [06.Август.2020 05:44:11 UTC](https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967/6 "2020-08-06T05:44:11Z")

</div>

@dfabulich возникла некоторая путаница в том, что мы пробовали, а что нет. Мы это ещё не пробовали, но попробуем в будущем. Я уверен, что это есть в списке задач для наших дизайнеров.

👍

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [09.Август.2020 05:44:16 UTC](https://meta.discourse.org/t/improve-discourse-performance-with-content-visibility-auto/159967/7 "2020-08-09T05:44:16Z")

</div>

Эта тема была автоматически закрыта через 3 дня после последнего ответа. Новые ответы больше не принимаются.
