brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: larger-than: in the Network filter box shows only the heavy requests

Web-Development
~/tips/tip-devtools-network-larger-than

larger-than:500k

Filters the Network panel down to requests bigger than a size you choose.

A slow page usually has one or two files that are far too big. I want them at the top of the list without scrolling through a hundred small requests.

The Filter box in the Network panel accepts property filters next to plain text. One of them is larger-than:, which shows only resources larger than the size you give, in bytes. The docs say that 1000 equals 1k, so a suffix works too.

larger-than:500k

You can combine properties by separating them with a space. The docs give mime-type:image/gif larger-than:1K as an example, which shows GIFs bigger than one kilobyte. A filter like this answers a concrete question:

mime-type:image/jpeg larger-than:300k

That lists the JPEGs over 300 kilobytes. Other properties exist as well, among them domain, method, status-code and resource-type, so you can narrow it to one host or to failed requests.

There is also an Invert checkbox next to the Filter box, which turns the filter around and shows everything except the matches.

Several properties act as AND. The docs state that OR is not supported, so you cannot ask for large images or large scripts in one go. You run two filters one after the other.

Further reading: Chrome DevTools: Network features reference

More Web-Development tips ab -n 200 -c 10 https://example.com/ console.assert(items.length > 0, 'cart is empty', items) document.designMode = "on" function save(item) { Save draft All Web-Development tips (67) All topics

Link