Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: don't mount icons on start #6691

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

SevereCloud
Copy link
Contributor

@SevereCloud SevereCloud commented Mar 13, 2024

Описание

Сейчас в стайлгайде иконки монтируются сразу при открытии страницы. Это было сделано для копирования иконок в Frame. Данный способ серьезно замедляет открытие страницы и также монтирует очень большое количество DOM нод

image

Изменения

Избавился от монтирование иконок на старте и добавил обсервер на спрайт

image

LCP (замедление cpu x6, M1) 13 сек -> 5.5 сек

- closed #6686
Сейчас в стайлгайде иконки монтируются сразу при открытии страницы. Это было сделано для копирования иконок в Frame. Данный способ серьезно замедляет открытие страницы и также монтирует очень большое количество DOM нод

Избавился от монтирование иконок на старте и добавил обсервер на спрайт
@SevereCloud SevereCloud requested a review from a team as a code owner March 13, 2024 17:03
@SevereCloud SevereCloud added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Mar 13, 2024
Copy link
Contributor

👀 Docs deployed

Commit 696779c

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.25%. Comparing base (9fec797) to head (696779c).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6691   +/-   ##
=======================================
  Coverage   82.25%   82.25%           
=======================================
  Files         331      331           
  Lines       10273    10276    +3     
  Branches     3439     3442    +3     
=======================================
+ Hits         8450     8453    +3     
  Misses       1823     1823           
Flag Coverage Δ
unittests 82.25% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@SevereCloud SevereCloud merged commit dba7406 into master Mar 14, 2024
18 checks passed
@SevereCloud SevereCloud deleted the SevereCloud/docs/don't-mount-icons-on-start branch March 14, 2024 11:30
vkcom-publisher pushed a commit that referenced this pull request Mar 14, 2024
- closed #6686
Сейчас в стайлгайде иконки монтируются сразу при открытии страницы. Это было сделано для копирования иконок в Frame. Данный способ серьезно замедляет открытие страницы и также монтирует очень большое количество DOM нод

Избавился от монтирование иконок на старте и добавил обсервер на спрайт
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Документация не работает
3 participants