Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
niutech
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
451.
▲
by
niutech
3y ago
External CSS in `<link rel="stylesheet">` has been used since the beginning of CSS and they are render-blocking by default (see https://web.dev/articles/critical-rendering-path/render-bloc... ), so
452.
▲
by
niutech
3y ago
Python isn't built into Windows 10 by default and its easier for users to just run myape.exe than installing Python for Windows, pip install dependencies, etc.
453.
▲
by
niutech
3y ago
Do you remember Microsoft Deep Zoom and Deep Earth? https://en.wikipedia.org/wiki/Deep_Zoom
454.
▲
by
niutech
3y ago
When the CSS file is served from the same host and preloaded, the same connection is reused and multiplexed in HTTP/2, and subsequent requests are being served from browser cache.
455.
▲
by
niutech
3y ago
No, the CSS is being requested only once and cached in the browser, subsequent requests are being served from browser cache.
456.
▲
by
niutech
3y ago
Transfer size is one thing, but the JS code has to be parsed and executed on every web page load. Moreover, it is often loaded as a blocking <script> in <head>. My point is CSS and no JS is better than JS.
457.
▲
by
niutech
3y ago
> You need to do click to edit, lazy loading, infinite scroll, a live search, or anything else that you’d normally be reaching for JavaScript to accomplish, you can now add HTMX to the stack, write a few more attributes on your HTML, get
458.
▲
by
niutech
3y ago
Why anybody would like to store their sensitive business data on a public cloud such as Google Sheets?
459.
▲
by
niutech
3y ago
Why do you trap yourself into vendor lock-in to a proprietary Google service, instead of easy open source BI solutions such as Pretzel ( https://pretzelai.github.io/ ) or Datami ( https://datami.multi.coop/?loc
460.
▲
by
niutech
3y ago
But the webfont is not crucial to website UX as a blocking 3rd-party <script src="..."> without async/defer in <head> is.
461.
▲
by
niutech
3y ago
Unless you link the same cached CSS file in every web component.
462.
▲
by
niutech
3y ago
Or just use the same <link rel="stylesheet" href="..."> in every Shadow DOM, cached by web browser.
463.
▲
by
niutech
3y ago
You can use the same <link rel="stylesheet" href="..."> in Shadow DOM, which is cached by web browser.
464.
▲
by
niutech
3y ago
Yes, this is Pure HTML Out-of-Order Streaming without JS and it works in every web browser: https://github.com/niutech/phooos
465.
▲
by
niutech
3y ago
This robots.txt has Disallow rule commented out: # buzz off #User-agent: GPTBot #Disallow: /
466.
▲
by
niutech
3y ago
Microsoft has been forced to show the Browser Choice screen way before DMA: https://en.wikipedia.org/wiki/BrowserChoice.eu
467.
▲
by
niutech
3y ago
Newspapers aren't gatekeepers, unlike Meta.
468.
▲
by
niutech
3y ago
No need for JSON and JS, you can use pure HTML streaming: https://lamplightdev.com/blog/2024/01/10/streaming-html-out-... and pure CSS interactions like tabs, accordions, dropdown menus.
469.
▲
by
niutech
3y ago
Team Foundation Server probably.
470.
▲
by
niutech
3y ago
You can use binary-sse ( https://github.com/luciopaiva/binary-sse ) with minimal overhead.
471.
▲
by
niutech
3y ago
You can still use long polling with HTTP/2 nowadays, it isn't going nowhere.
472.
▲
by
niutech
3y ago
Not only x-mixed-replace. You can do out-of-order HTTP streaming by appending chunks of HTML without any JS at all, thanks to Declarative Shadow DOM: https://lamplightdev.com/blog/2024/01/10/streaming-htm
473.
▲
by
niutech
3y ago
There is better approach to base64: binary-sse ( https://github.com/luciopaiva/binary-sse )
474.
▲
by
niutech
3y ago
There is another alternative to base64: https://github.com/luciopaiva/binary-sse
475.
▲
by
niutech
3y ago
No need to base64 everything if you can just escape the new lines. Or you can use https://github.com/luciopaiva/binary-sse
476.
▲
by
niutech
3y ago
You can use DOM-to-image ( https://github.com/tsayen/dom-to-image ).
477.
▲
by
niutech
3y ago
Have you tried dom-to-image ( https://github.com/tsayen/dom-to-image ) or html2canvas?
478.
▲
by
niutech
3y ago
Blink source is not the spec, there are W3C specs implemented by Webkit/Blink/Gecko, see the Interop project. It's not that MS couldn't handle its own engine, it was just not worth it for them in the long term. Ladybird,
479.
▲
by
niutech
3y ago
For flexbox check out Facebook Yoga ( https://github.com/facebook/yoga ) or Webkit.js ( https://github.com/trevorlinton/webkit.js ).
480.
▲
by
niutech
3y ago
There is also HTML/CSS layout engine litehtml ( https://github.com/litehtml/litehtml ) and even a full-blown web engine in JS: WebKit.js ( https://github.com/trevorlinton/webkit.js )
More ›