Readit News logoReadit News
netol commented on Ask HN: Share your personal website    · Posted by u/susam
netol · a month ago
netol commented on HTML-only conditional lazy loading (via preload and media)   orga.cat/blog/html-condit... · Posted by u/netol
alwillis · a month ago
> It’s not a hack

Yeah, this isn't a hack; this is what media queries were made for.

Now, this is a hack!

You had to do this to make :hover work correctly for IE6—IE8 [1]:

    body {
      behavior: url("csshover3.htc");
    }
[1]: https://pawelgrzybek.com/internet-explorer-just-hit-the-end-...

netol · a month ago
I agree, this was not a hack. It is combined behavior from documented features (preload with media and lazy loading).
netol commented on HTML-only conditional lazy loading (via preload and media)   orga.cat/blog/html-condit... · Posted by u/netol
nchmy · a month ago
likewise - it always loads the image up front.
netol · a month ago
Are you sure? I can see the image loading much later on mobile: https://pagegym.com/compare/uu5641qndi/4d3ifzdbxk
netol commented on HTML-only conditional lazy loading (via preload and media)   orga.cat/blog/html-condit... · Posted by u/netol
onionisafruit · a month ago
Is it the “min-width=1024px” in the link that causes it to not load on smaller devices?
netol · a month ago
To not preload, yes
netol commented on HTML-only conditional lazy loading (via preload and media)   orga.cat/blog/html-condit... · Posted by u/netol
bmacho · a month ago
> Not documented anywhere (but seems to work fine in major browsers)

Which part of it is not documented? Putting device width dependent preloading in HTTP header? MDN says that the HTTP link header works the same way as the link element, and also that the link element a has media attribute : https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

netol · a month ago
I could not find this hack documented or discussed anywhere, that's what I meant.
netol commented on .NET 10   devblogs.microsoft.com/do... · Posted by u/runesoerensen
jitbit · 3 months ago
For us, every .NET upgrade since .NET 5 has gone surprisingly smoothly and reduced CPU/RAM usage by 10–15%.

We were even able to downgrade our cloud servers to smaller instances, literally.

I wish .NET was more popular among startups, if only C# could get rid of the "enterpisey" stigma.

netol · 3 months ago
The XML/config side of things just isn't for everyone. Sometimes Go's simplicity wins out.

u/netol

KarmaCake day196January 29, 2017View Original