Better HN
topnewbestaskshowjobs
Log inSign up

khalwat

45 karma · joined Dec 28, 2016 (9y ago) · 17 submissions

Submissions

comment 4y ago · link · parent

Glad to hear it!

Andrew Welch / el presidente

comment 5y ago · link · parent

You made my day, thanks for that! /andrew

comment 5y ago · link · parent

"had" ;) /berserkir

comment 5y ago · link · parent

I made that game in college with the help of some very talented artists, and my friends who helped with the sound effect. It was written on a Mac IIsi IIRC! We def had fun making it (and playing it while making it) /andrew

comment 5y ago · link · parent

Thanks Tom. Always loved having you work there, definitely tried to work to live rather than live to work! /andrew

comment 7y ago · link · parent

Agreed; if the images are purely decorative (some are, some are not) then it should have an empty `alt=""` to have screen readers skip them.

But I would still want to use an actual picture element with srcset & source attributes/tags for the reasons mentioned in the article.

comment 7y ago · link · parent

Author here. I'm familiar with optimizing images via webpack and the like; there's an article I wrote on the same site as this one detailing just that (amongst other things):

https://nystudio107.com/blog/an-annotated-webpack-4-config-f...

The issue is that for many larger sites that are content-managed, the images aren't known at build time. So you need some kind of mechanism in place to deal with optimizing user-uploaded images.

Obviously you don't want truly decorative images indexed; but that's not what the article is discussing (except in the "SO WHEN IS IT GOOD?" section). It's discussing the abuse of CSS background-image for content images, something I've seen as being quite prevalent.

As the article mentioned, this is bad for accessibility, SEO, performances, and other lesser issues.

comment 7y ago · link · parent

Author here. Yep, this is exactly my point! Don't use CSS background-image for "content images". There are significant downsides for doing so.

comment 7y ago · link · parent

Author here. What advice is "bad" in your estimation?

As for not following my own advice, that's not quite right. I'm using picture and img tags rather than div's with CSS background-image, which is the main thrust of the article.

I'm also using srcset for performance, and webp as a progressive enhancement for browsers that support it.

The only thing I'm not doing is using the new loading="lazy" because the website was creating long before the article.

10.

A/B Split Testing with Nginx and Craft CMS(nystudio107.com ↗)

1 points · by khalwat · 9y ago · discuss

11.

Tags Gone Wild Managing Tag Managers(nystudio107.com ↗)

1 points · by khalwat · 9y ago · discuss

12.

Local Development with Vagrant / Homestead(nystudio107.com ↗)

5 points · by khalwat · 9y ago · discuss

13.

Modern SEO: Snake Oil vs. Substance(nystudio107.com ↗)

3 points · by khalwat · 9y ago · discuss

14.

Using SystemJS as JavaScript Loader(nystudio107.com ↗)

1 points · by khalwat · 9y ago · discuss