HackerLangs
トップ新着トレンドコメント過去質問紹介求人

netol

no profile record

投稿

HTML-only conditional lazy loading (via preload and media)

orga.cat
100 ポイント·投稿者 netol·6 か月前·20 コメント

Is This the End of the Dictionary?

theatlantic.com
3 ポイント·投稿者 netol·10 か月前·0 コメント

コメント

netol
·3 か月前·議論
The fact that Valencia and Barcelona are still not connected, for example
netol
·6 か月前·議論
https://orga.cat
netol
·6 か月前·議論
I agree, this was not a hack. It is combined behavior from documented features (preload with media and lazy loading).
netol
·6 か月前·議論
Are you sure? I can see the image loading much later on mobile: https://pagegym.com/compare/uu5641qndi/4d3ifzdbxk
netol
·6 か月前·議論
To not preload, yes
netol
·6 か月前·議論
I could not find this hack documented or discussed anywhere, that's what I meant.
netol
·8 か月前·議論
The XML/config side of things just isn't for everyone. Sometimes Go's simplicity wins out.
netol
·2 年前·議論
> With mod_php, every Apache process has the PHP engine embedded in it, even if PHP isn't needed, e.g., to serve a request for a .css file. When Apache gets a bunch of requests for flat files, it forks all those processes and fills up RAM with copies of the PHP engine that aren't used. That's not only wasteful, but it dramatically increases the chances that you'll run out of memory. You can limit the number of Apache children of course, but you'll see timeouts sooner when you get a traffic spike.

Yes, that is true. But most high-traffic websites will cache static files such as CSS files and images, using a reverse proxy (e.g. Varnish, a CDN, or usually both). So I don't think this is a real problem, most of the time (99.9%?), a request for a static file will not hit Apache.

I'm not saying mod_php is better for all scenarios, of course, but I think it can be ok.
netol
·2 年前·議論
It's simple and there is less overhead. Since PHP runs directly within the Apache process, there is no need for inter-process communication (no TCP, no sockets), reducing the overhead. This can lead to lower latency for individual requests.