Web Vitals — это метрики от Google, которые измеряют реальное восприятие производительности пользователями.
Особенно важны:
* LCP — скорость загрузки главного контента
* INP — отзывчивость при взаимодействии
* CLS — стабильность интерфейса
Зачем прокачивать Web Vitals:
Как внедрить в проект:
import { getCLS, getINP, getLCP } from 'web-vitals';
getCLS(console.log);
getINP(console.log);
getLCP(console.log);
— Откройте DevTools → вкладка Lighthouse
— Запустите аудит и смотрите рекомендации по улучшению
— Используйте
loading="lazy"
для изображений— Добавьте
font-display: swap
к шрифтам— Минимизируйте и разбивай JS на чанки
#буст
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥5❤3
Please open Telegram to view this post
VIEW IN TELEGRAM
😁9💯2
ChatGPT с этим промптом превращается в мощный парсинг-инструмент: скрин → код.
Что нужно сделать:
Промпт:
You're a professional web developer and UI/UX expert.
I’m going to upload an image of a website design or component. Please:
1. Analyze the layout and design from the image.
2. Generate clean, responsive HTML and CSS (Tailwind is fine too).
3. Add comments in the code to explain your logic.
4. Ask me any questions if something in the image isn’t clear.
Output everything inside code blocks and make sure it's mobile-friendly.
Работает отлично для:
— hero‑секций
— форм логина/регистрации
— табличек с ценами
— админок и портфолио
#буст
Please open Telegram to view this post
VIEW IN TELEGRAM
⚡2❤2🔥2