The post has been translated automatically. Original language: Russian
On the developer's powerful work laptop, the website opens instantly, animations are smooth, and all buttons respond without delay. But if you open the same page on a regular Android smartphone on a mobile network, the screen goes white for three seconds, and the order form freezes when you first click it.
The scale of the problem is clearly visible in the global HTTP Archive Web Almanac statistics. If in 2024 the median JavaScript weight on mobile pages was 558 KB, then in the Web Almanac 2025 report it has already grown to 632-697 KB (697 KB on mobile home pages).
For a layman, half a megabyte seems like a small thing — a photo weighs the same amount. But a kilobyte of JavaScript costs the browser several times more than a kilobyte of an image: the archive needs to be downloaded, decompressed into several megabytes of text, parsed, compiled and executed in the main processor thread.
While the smartphone processor is busy with heavy scripts, the page looks loaded, but does not respond to touch. It is this delay that Google's INP (Interaction to Next Paint) metric measures — the time from a user's click to the visual response of the interface.
Where does excess weight come from? Most often, it's not even the framework itself that's to blame, but dozens of libraries connected "just in case", heavy graphics on the main page, and a bunch of marketing trackers, chat widgets, and analytical tags that load synchronously even before the first screen is shown.
Engineering ways to get speed back are simple and testable: code splitting along routes, delayed loading of third-party scripts, server rendering for content pages, and a hard performance budget in CI that does not skip commits if the build weight suddenly increases by 100 KB.
For online services, media, and e-commerce projects in Kazakhstan and Central Asia, mobile web speed is a direct revenue factor. A significant part of users log in from budget and mid-budget smartphones via cellular communication, including from regions where every extra second of waiting turns into a closed tab.
Frontend performance is not a "polishing for later", but a part of the user experience from the first second of the visit. How often do you check the size of a JS bundle and test your website on a regular smartphone via the mobile Internet? Write in the comments.
Sources:
На мощном рабочем ноутбуке разработчика сайт открывается мгновенно, анимации плавные, все кнопки реагируют без задержек. Но стоит открыть ту же страницу на обычном Android-смартфоне в мобильной сети — экран три секунды висит белым, а форма заказа подвисает при первом нажатии.
Масштаб проблемы хорошо виден в глобальной статистике HTTP Archive Web Almanac. Если в 2024 году медианный вес JavaScript на мобильных страницах составлял 558 КБ, то в отчете Web Almanac 2025 он вырос уже до 632–697 КБ (697 КБ на мобильных главных страницах).
Для неспециалиста полмегабайта кажутся мелочью — фотография весит столько же. Но килобайт JavaScript обходится браузеру в разы дороже килобайта картинки: архив нужно скачать, распаковать в несколько мегабайт текста, распарсить, скомпилировать и выполнить в главном потоке процессора.
Пока процессор смартфона занят тяжелыми скриптами, страница выглядит загруженной, но не реагирует на касания. Именно эту задержку измеряет метрика Google INP (Interaction to Next Paint) — время от клика пользователя до визуального отклика интерфейса.
Откуда берется лишний вес? Чаще всего виноват даже не сам фреймворк, а десятки подключенных «на всякий случай» библиотек, тяжелые графики на главной странице и ворох маркетинговых трекеров, виджетов чата и аналитических тегов, которые грузятся синхронно еще до показа первого экрана.
Инженерные способы вернуть скорость просты и проверяемы: разделение бандла (code splitting) по маршрутам, отложенная загрузка сторонних скриптов, серверный рендеринг для контентных страниц и жесткий performance budget в CI, который не пропускает коммит, если вес сборки внезапно вырос на 100 КБ.
Для онлайн-сервисов, медиа и e-commerce-проектов Казахстана и Центральной Азии скорость мобильного веба — прямой фактор выручки. Значительная часть пользователей заходит с бюджетных и среднебюджетных смартфонов по сотовой связи, в том числе из регионов, где каждая лишняя секунда ожидания оборачивается закрытой вкладкой.
Производительность фронтенда — это не «полировка на потом», а часть пользовательского опыта с первой секунды визита. Как часто вы проверяете размер JS-бандла и тестируете свой сайт на обычном смартфоне через мобильный интернет? Пишите в комментариях.
Источники:
Comments 0
Newest Popular