News for hackers. Stuff that matters.
Re:How to Build a Low-Tech Website by jtms on Wednesday September 26, 2018 @12:53PM (#18077860)
I am going to guess they are getting a massive surge of traffic about now and yet the site still renders in a fraction of the time it takes most "modern" web apps or even just static content sites - this is how it should be.
Re:How to Build a Low-Tech Website by romaniv on Wednesday September 26, 2018 @02:03PM (#18078617)
Honestly, I'm not even sure what modern website are doing when they generate pages. I've had highly dynamic PHP/MySQL websites running on crap hardware, and it was trivial to attain .03 second page generation time. Didn't even need fancy caching, just some common-sense SQL optimizations.
Re:How to Build a Low-Tech Website by wincy on Wednesday September 26, 2018 @03:10PM (#18079262)
At my last job we had an ad bidding API that would reach out to every advertiser we worked with, got the highest bid, then presented an advertisement to them.

The page was also framework after framework piled on top of each other, so they’d be using React and jQuery at the same time, stuff like that. And so marketing could change whatever they wanted whenever they wanted without breaking the entire site, everything was served from a CMS.

So it’s probably a lot of that.

Re:How to Build a Low-Tech Website by jtms on Thursday September 27, 2018 @09:20AM (#18084152)
LOL - oh man... I can relate!

At a previous gig we had a similar situation. It was so bad my coworkers and I would joke that we needed one of those "break in case of emergency" boxes with the glass front and a hammer hanging adjacent. Inside the box: a can of lighter fluid and a match. The purpose: when the crazy got to be too much you just light own hair on fire and then go run around in traffic.

What you just described would definitely be a break the glass kinda situation :-)

Re:How to Build a Low-Tech Website by pmlnr on Wednesday September 26, 2018 @03:17PM (#18079313)
It's crappy wordpress themes.

Before going static as well I made a WP theme with Twig, removing most <?php wp_magic_function(); ?> from there. It was fast, way faster, than the usual WP themes. Obviously nowhere close to a static HTML.

Re:How to Build a Low-Tech Website by tootahe45 on Wednesday September 26, 2018 @06:47PM (#18080910)
I find its the bigger sites that have been introducing the slowest/most clunky front-ends. Thinking new Reddit, Tumblr, etc.
Re:How to Build a Low-Tech Website by manigandham on Thursday September 27, 2018 @01:32AM (#18082282)
Its not the HTML generation that's slow, it's everything that comes after. Usually lots of Javascript to run media and ads. Unfortunate, but it's driven by business decisions, not tech.
Re:How to Build a Low-Tech Website by user111233 on Wednesday September 26, 2018 @10:59PM (#18081841)
> just some common-sense SQL optimizations.

Thats probably it. Some beginner has written an n+1 query and the page is slow as shit now.

Re:How to Build a Low-Tech Website by seddin on Wednesday September 26, 2018 @02:08PM (#18078663)
A trillion npm packages will for sure add a couple seconds of delay to your website loading speed.
Re:How to Build a Low-Tech Website by acheron on Wednesday September 26, 2018 @03:09PM (#18079253)
Hey, when you need to pad a string, what else are you supposed to do?
Re:How to Build a Low-Tech Website by coldtea on Wednesday September 26, 2018 @05:49PM (#18080566)
Yeah, pad it ourselves? What are we, savages?
Re:How to Build a Low-Tech Website by blotter_paper on Wednesday September 26, 2018 @07:03PM (#18080992)
That depends on whether or not they are required for first render. Whatever scripts you attach will only be requested after the HTML is delivered, unless they're embedded (most aren't). Isomorphic rendering and rehydration can deliver and render just as fast as a static page, because it is a static page... at first. The problem with modern web page load times isn't the number npm packages bundled for the project, it's that developers/companies, through incompetence, laziness, or a desire to make sure that would-be NoScript users have to run their tracking code before being allowed to view content, don't always render basic content and functionality before requesting that bundle. The only exceptions to this I can think of are scripts that require you to run them before first render, like PayPal buttons that want to inspect everything, make sure they aren't in an iframe, etc.
Re:How to Build a Low-Tech Website by jtms on Thursday September 27, 2018 @09:21AM (#18084160)
`npm install the-entire-universe`