Live data from Hacker News

1MB Club

1mb.club

281–290 of 392 posts

Re: 1MB Club

#281

Just checked our newest Blazor server-side web administration site in chrome devtools. 12 requests total, 322kB transferred (914kB uncompressed, so either way), finish in 991ms. Request was made between Texas and AWS us-east-1. Server running on a T3a instance. This is .NET Core 3.1 on Windows Server 2019. Of the 322kB, blazor.server.js is 39.2k and our JS interop shim is 3k. This represents all that is required to c…

That's pretty interesting

So, instead of sending tons of js on the client side that does the job, let's connect via websocket to the server and let the server return HTML with new content dynamically, yea?

Re: 1MB Club

#282
Using a large amount of memory is totally fine for an enterprise SaaS app that a user is going to spend multiple hours a day in. There isn’t a one-size-fits-all web. Not every app is a blog or serving text content.

Re: 1MB Club

#284
Not much interested in arbitrary size limits. Far more interested in the content/size ratio. Especially if given the option to see more and weightier stuff if interested. My favorite example, that I use daily, is:

https://text.npr.org/

Re: 1MB Club

#285
post #267

Earlier quoted context omitted.

Yes news sites are the worst of the bunch but then we get people complaining about full web apps using JS when there is no real alternative.

The problem is that sites that really had no business being "web apps" have turned into these monstrosities. The new Reddit and Youtube are great examples of this. The old versions worked just fine, but for some reason they were replaced with all Javascript versions that perform much worse.

It seems pretty clear what the motives for reddit are. They want as much tracking/ads as possible as well as actively discouraging use over the app. At every step the website tells you to use the app instead or that this content is only available for app users.

JS is not the issue and reddit could have easily made a snappy react version of the site. Monetization, ad tech and engagement growth are the issues.

Re: 1MB Club

#286
post #209

The culture change around the importance of performance is frustrating, new developers all seem to love their massive JavaScript libraries. Giving a trivial function such as search box on a webpage or some animation results in a convoluted 10MB JavaScript monster from hell. If they run into anything remotely challenging they'll simply add a library to do it for them creating more bloat. It used to be the opposite. Wh…

React/vue/etc are not massive libraries. The problem usually comes from websites loading 5 versions of jquery and then 30 ad network scripts. And yes, doing anything mildly responsive with jquery is too hard. And not in the "I don't know how to do this" way. Its just a huge waste of time. What takes 100 lines of jquery code can be done for free with jsx. Usually jquery sites settle for sub optimal UX because its too…

Yes, what I was alluding too was that new tooling tends to make it easier for client resources to explode out of control.

Don't get me wrong, jsx is great. but it should be used in the right place.

Re: 1MB Club

#287

Just checked our newest Blazor server-side web administration site in chrome devtools. 12 requests total, 322kB transferred (914kB uncompressed, so either way), finish in 991ms. Request was made between Texas and AWS us-east-1. Server running on a T3a instance. This is .NET Core 3.1 on Windows Server 2019. Of the 322kB, blazor.server.js is 39.2k and our JS interop shim is 3k. This represents all that is required to c…

That's pretty interesting So, instead of sending tons of js on the client side that does the job, let's connect via websocket to the server and let the server return HTML with new content dynamically, yea?

Correct. The way Blazor produces DOM updates is pretty interesting. There was an excellent NDC talk that does a deep dive on how all of the internals work:

https://www.youtube.com/watch?v=dCgqTDki-VM

The amount of javascript interop that I have to maintain in order to support a very complex Blazor application is somewhere around 200 lines at the moment.

Re: 1MB Club

#288
post #265
post #65

Earlier quoted context omitted.

Are you not using an ad blocker? danluu.com has google-analytics, which is a very large script. Please use uBlock Origin.

Ad blockers already don't work. They're largely useless. If you use one these days, you already know why.

I don't know why. Can you explain?

Re: 1MB Club

#289
post #216

I guess the leader is missing "packet.city" an entire website in a single TCP packet weighing in at 1.2kb Site: http://packet.city/ Source: https://github.com/diracdeltas/FastestWebsiteEver

Loud sound warning would be nice.

Re: 1MB Club

#290

I love it! I feel like the 1MB limit is excessively generous, especially for text-only pages. But maybe that's what makes it so damning when pages fail to adhere to it. I know at least one website I maintain fails it spectacularly (though in my defense it's entirely because of that website being chock-full of photos, and full-res ones at that; pages without those are well under that 1MB mark), while other sites I've…

Something about all pages being under limit the limit instead of every page being under the limit changes the exact meaning to something that I cannot agree with. Which was the meaning I replied below and then wrote this after realizing you might of meant every when you wrote all.

Lets say you write a daily blog. A single A4 of text contains on average 3000 characters, your posts average slightly above that by being 4000 characters. How long until the text content alone is above the 1MB limit.

https://dictionary.cambridge.org/grammar/british-grammar/all...

Post reply on HN