BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Web Almanac Mega Study Reveals That Popular Front-End Frameworks Are Still a Small Part of the Web

Web Almanac Mega Study Reveals That Popular Front-End Frameworks Are Still a Small Part of the Web

This item in japanese

Bookmarks

The HTTP Archive recently finalized the Web Almanac 2020, an annual report on the state of the web. The report gathers its conclusions in 22 chapters organized in four sections (e.g, page content, user experience, content publishing and distribution) totaling 600 pages: jQuery is still 80% of the web; CSS Houdini is seldom used; the median website ships 400 KB of JavaScript in 2020, 14% more than in 2019; and many more.

The CSS chapter emphasized that adoption of some shiny additions or proposals enriching the CSS standard may be lagging:

Overall, what we observed was a web in two different gears when it comes to CSS adoption. In our blog posts and Twitter bubbles, we tend to mostly discuss the newest and shiniest, however, there are still millions of sites using decade-old code. [… While] we also observed impressive adoption of many new features—even features that only got support across the board this very year, like min() and max(), […] there is generally an inverse correlation between how cool something is perceived to be and how much it is actually used; for example, cutting-edge Houdini features were practically nonexistent. […] Most CSS usage in the wild is fairly simple.

The CSS chapter additionally reports that the median weight of CSS is around 60 KB aggregating over 400 rules and 5,000 declarations. The majority of websites are now using Flexbox layouts (around 60% in 2020 vs. 40% in 2019). CSS Grid layouts (display:grid) are picking up (doubling its share vs. 2019) but remain a distant minority (5% of websites). Transitions and animations are quite extended across the web with over 80% of pages featuring a transition property and over 70% having an animation property. Visual effects (blend modes, image filters, clipping paths) are popular CSS features: CSS filters are used in 80% of pages; blend modes doubled their share over the previous year and amount to 13% of pages.

By contrast, only 2% of websites use any CSS-in-JS method, despite CSS-in-JS being plentifully discussed among web developers. CSS Houdini is also used in a vanishingly small portion of web pages. The report says:

The CSS Painting API is a more broadly implemented Houdini spec that allows developers to create custom CSS functions that return <image> values, e.g. to implement custom gradients or patterns. Only 12 pages were found to be using paint(). Each worklet name (hexagon, ruler, lozenge, image-cross, grid, dashed-line, ripple) only appeared on one page each, so it appears the only in-the-wild use cases were likely demos.
Typed OM, another Houdini specification, allows access to structured values instead of the strings of the classic CSS OM. It appears to have considerably higher adoption compared to other Houdini specs, though still low overall. It is used in 9,864 desktop pages (0.18%) and 6,391 mobile ones (0.1%).

The JavaScript chapter of the report indicates around 14% growth in the size of JavaScript loaded by pages, with the median page at around 400 KB of JavaScript. The report notes that pages targeting mobiles and pages targeting desktops have similar JavaScript payloads while largely differing in networking and processing capabilities; and that 37% of the JavaScript on the median web page is unused. The report says:

Depending on your point of view, you could be forgiven for not getting too upset about the small gap in the amount of code sent to a desktop browser versus a mobile one—after all, what’s an extra 30 KB or so at the median, right? […]
The median desktop site spends 891 ms on the main thread of a browser working with all that JavaScript. The median mobile site, however, spends 1,897 ms—over two times the time spent on the desktop. It’s even worse for the long tail of sites. At the 90th percentile, mobile sites spend a staggering 8,921 ms of main thread time dealing with JavaScript, compared to 3,838 ms for desktop sites.

On the bright side, resource hints, which allow offsetting some of the network costs of loading JavaScript, are used in nearly 17% of pages, with nearly all that usage coming from preload.

The Third Parties chapter of the report analyzes the presence, distribution, and impact of third-party scripts, emphasizing the importance of managing them:

Advertising requests appear to have an increased impact on CPU time. The median page with advertising scripts consumes three times as much CPU as those without.

Developers can consult the full report online in four different languages. The HTTP Archive took more than five months to compile the Web Almanac, with hundreds of contributors scouring through million websites’ data. The HTTP Archive evaluates the composition of millions of web pages on a monthly basis and makes its terabytes of metadata available for analysis on BigQuery.

Rate this Article

Adoption
Style

BT