HackerTrans
TopNewTrendsCommentsPastAskShowJobs

netol

no profile record

Submissions

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

orga.cat
100 points·by netol·قبل 6 أشهر·20 comments

Is This the End of the Dictionary?

theatlantic.com
3 points·by netol·قبل 10 أشهر·0 comments

comments

netol
·قبل 3 أشهر·discuss
The fact that Valencia and Barcelona are still not connected, for example
netol
·قبل 6 أشهر·discuss
https://orga.cat
netol
·قبل 6 أشهر·discuss
I agree, this was not a hack. It is combined behavior from documented features (preload with media and lazy loading).
netol
·قبل 6 أشهر·discuss
Are you sure? I can see the image loading much later on mobile: https://pagegym.com/compare/uu5641qndi/4d3ifzdbxk
netol
·قبل 6 أشهر·discuss
To not preload, yes
netol
·قبل 6 أشهر·discuss
I could not find this hack documented or discussed anywhere, that's what I meant.
netol
·قبل 8 أشهر·discuss
The XML/config side of things just isn't for everyone. Sometimes Go's simplicity wins out.
netol
·قبل سنتين·discuss
> 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
·قبل سنتين·discuss
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.