News for hackers. Stuff that matters.
Re:How to build a personal webpage from scratch by carlineng on Thursday September 29, 2022 @10:39AM (#33021323)
I really like the John Doe template. Everything is in one HTML file and one CSS file: https://github.com/cadars/john-doe/

From the readme: “This setup is databaseless, javascriptless, and buildshit-free, so you can edit your website with a text editor and upload it somewhere like a normal person.”

Re:How to build a personal webpage from scratch by Funes- on Thursday September 29, 2022 @11:50AM (#33022379)
I had a feeling that this could be made, and even thought about attempting it myself, but wouldn't this make every visitor load everything on the site at once, even if they don't want to? Or is it only loaded if it is actually displayed? Perhaps browsers have become more efficient at this and do it right off the bat now, but I think it wasn't the case a bunch of years back.
Re:How to build a personal webpage from scratch by carlineng on Thursday September 29, 2022 @01:26PM (#33024164)
<img> tags use the loading="lazy" property which doesn't actually load the image until it's displayed. Everything else is just text, which is super tiny.

https://github.com/cadars/john-doe/blob/4f5a3eafecbdffa9d34f...

Re:How to build a personal webpage from scratch by Funes- on Thursday September 29, 2022 @03:21PM (#33025749)
I didn't know about that attribute, thanks. I wonder if there's a way to make "lazy" its default value, instead of "eager"... I guess not without JS.

P. S. It seems that Safari isn't compatible with the attribute by default, but it can be enabled through its settings.

Re:How to build a personal webpage from scratch by jherazob on Friday September 30, 2022 @09:18AM (#33034470)
Yeah, this author is definitely my people