Edent, to accessibility
@Edent@mastodon.social avatar

🆕 blog! “I think I kind of hate lazy loading”

Yesterday I was on a train. I clicked on a link and my browser loaded a long article for me to read. Halfway through reading it, the train went into a tunnel and I lost signal. That meant I couldn't see the images on the other half of the page for the rest of the […]

👀 Read more: https://shkspr.mobi/blog/2023/09/i-think-i-kind-of-hate-lazy-loading/

beeoproblem, to webdev
@beeoproblem@mastodon.gamedev.place avatar

Last boost: Important for anyone doing etc on itch.io

They're migrating CDNs which could break stuff in your games if you're using localstorage

TheRealPomax, to webdev
@TheRealPomax@mastodon.social avatar
og, to webdev

I am back in on and getting back to

Edent, to accessibility
@Edent@mastodon.social avatar

🆕 blog! “This link is only available by keyboard navigation”

There's a link, right here ➡️⬅️ but, if you're on a touchscreen, you can't tap on it. Using a mouse? Nope, that won't work either. The only way to navigate to it is via keyboard navigation. Hit your Tab ⭾ button! There's a little bit of me wants to build an entire website which can […]

👀 Read more: https://shkspr.mobi/blog/2023/07/this-link-is-only-available-by-keyboard-navigation/

nekohayo, to Energy
@nekohayo@mastodon.social avatar

Another suggestion for #performance and #energy #power savings in #WebKit / #WebKitGTK : automatically pausing a previously playing "#HTML5 video with audio" tab when opening a new one, except if it's #WebRTC : https://bugs.webkit.org/show_bug.cgi?id=259227

amberage, to javascript
@amberage@eldritch.cafe avatar

doesn't have any customisable dialog boxes, so you have always had to build your own. Since , there's the dialog element for that, which is neat, but comes with the additional problem of not blocking execution until it's closed.

So now I, wanting to replace a confirm call with a custom dialog, have to figure out how to halt my script until the dialog has been closed, and ahhhhh!!!

I tried creating a new Promise object, calling await myPromise, and resolving that promise with the dialog's OK button, but that failed because the promise doesn't have a built-in resolve function (how could it, it's supposed to be resolved externally).

AHHHHH!!!!!!

Why the fuck does JavaScript not have a proper waitUntil function? Now I have to do it dirty with while(!checkOpen(myDialog)) { }, which is just nasty.

matkoch, to webdev

AngleSharp gives you everything you need to love ❤️ Learn more about exploration, query selectors, and support!

📺 OSS Power-Ups:
🗣 Speaker: Florian Rappl

📅 Next week, 12 July, 5pm CEST / 11am EDT
🤗 Open to all, welcome!

https://blog.jetbrains.com/dotnet/2023/07/06/webinar-oss-power-ups-anglesharp/

w3cdevs, to webdev
@w3cdevs@w3c.social avatar

🗓️ July@w3c:

david_megginson, to webdev
@david_megginson@mstdn.ca avatar

Who still uses on the web?

  • and Atom: news, blog, and other updates
  • International Aid Transparency Initiative (): aid spending and budgets
  • : U.S. public corporate filings
  • Scalable Vector Graphics () files
  • the well-formed flavour of
  • etc etc

(I left out stuff in zipfiles like Word and Excel.)

Old never die; they just become boring critical infrastructure.

murtezayesil, to webdev

Did you know that responsive web is not limited to text and page layout. It also allows us to define and select the image with correct size from a list of sources depending on viewport size. Best part is, all of this is part of HTML5. No JS needed.

https://kurtextrem.de/posts/modern-way-of-img

You can also compare images of different formats and sizes to see how much perceptual difference they make.
https://storage.googleapis.com/demos.webmproject.org/webp/cmp/2022_10_04/index.html

Edent, to webdev
@Edent@mastodon.social avatar

🆕 blog! “Can this device make a phone call?”

I want to detect if a web browser is running on a device which is capable of placing a telephone call. Is that possible? I'm going to go with a cautious "no - not quite". Although there are several proxies which get you part of the way there. Here's a link to a telephone number […]

👀 Read more: https://shkspr.mobi/blog/2023/06/can-this-device-make-a-phone-call/

Edent, to webdev
@Edent@mastodon.social avatar

🆕 blog! “Does AI mean we don't need the Semantic Web?”

If you hang around with computerists long enough, they start talking about the Semantic Web. If you can represent human knowledge in a way that's easy for computers to understand it will be transformative for information processing. But computers, traditionally, haven't been very good at parsing ambiguous …

👀 Read more: https://shkspr.mobi/blog/2023/05/does-ai-mean-we-dont-need-the-semantic-web/

.org

Edent, to webdev
@Edent@mastodon.social avatar

🆕 blog! “The limits of CSS styling select options”

Sometimes you learn the most from failures! I wanted a <select multiple> element where the <options> were laid out in a grid. I nearly got there. It's possible to have the <option>s in a horizontal row - but only on Chrome and Firefox. Here's a quick fiddle showing the results: As you can see, it's […]

👀 Read more: https://shkspr.mobi/blog/2023/05/the-limits-of-css-styling-select-options/

Edent, to webdev
@Edent@mastodon.social avatar

🆕 blog! “Responsive Yearly Calendar with Flexbox”

This blog has a calendar showing my yearly archives. It was in a table layout - which made sense when I first designed it - but had a few spacing niggles and was hard to make responsive. Now, it behaves like this: The code is relatively straightforward. The HTML for the calendar looks like this: […]

👀 Read more: https://shkspr.mobi/blog/2023/04/responsive-yearly-calendar-with-flexbox/

Edent, to CSS
@Edent@mastodon.social avatar

🆕 blog! “How to password protect a static HTML page with no JS”

I recently saw Robin Moisson's method of password protecting a statically served HTML page. It's quite neat! But it does rely on JavaScript. That got me wondering if there was a way to encrypt a static page only using CSS? And... I think I've done it! I'll warn you now, this is a deeply s…

👀 Read more: https://shkspr.mobi/blog/2023/02/how-to-password-protect-a-static-html-page-with-no-js/

Edent, to webdev
@Edent@mastodon.social avatar

How to add ISSN metadata to a web page

Inspired by John Hoare at the Dirty Feed blog - I've asked the British Library to assign my blog an International Standard Serial Number (ISSN).

An ISSN is an 8-digit code used to identify newspapers, journals, magazines and periodicals of all kinds and on all media–print and electronic.

Why?

Shut up.

OK. It turns out that lot

https://shkspr.mobi/blog/2021/09/how-to-add-issn-metadata-to-a-web-page/

#/etc/ .org

Edent, to CSS
@Edent@mastodon.social avatar

-webkit-text-stroke and emoji

The CSS property -webkit-text-stroke is a curious beastie.

MDN gives a big scary warning saying "Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web."

And yet, it works everywhere. All modern browsers support it. Except on Emoji.

Here's how it work. -webkit-text-stroke: pink 1px; draws a pin

https://shkspr.mobi/blog/2021/09/webkit-text-stroke-and-emoji/

#/etc/

Edent, to chrome
@Edent@mastodon.social avatar

What's the window size of a background tab?

Whenever I open Twitter in a new tab on my phone, the page layout looks weird for a few seconds. It starts out looking like the desktop view and then, after a few seconds, it snaps back to the mobile view.

What's causing this?

Try opening this link to a window size detector in a background tab. Then visit tha

https://shkspr.mobi/blog/2021/09/whats-the-window-size-of-a-background-tab/

#/etc/

Edent, to accessibility
@Edent@mastodon.social avatar

Adding a language tag to image elements

(You may already know this, but I didn't. Every day is a school day.)

HTML has the concept of the lang attribute. It allows you to say that a specific element contains text in a specific human language. For example, this page starts with:

That says the entire page is written in English, with the sub-type of Great Britain. T

https://shkspr.mobi/blog/2021/08/adding-a-language-tag-to-image-elements/

#/etc/

Edent, to webdev
@Edent@mastodon.social avatar
Edent, to webdev Danish
@Edent@mastodon.social avatar
Edent, to webdev
@Edent@mastodon.social avatar
Edent, to BugBounty
@Edent@mastodon.social avatar
Edent, to webdev
@Edent@mastodon.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • ethstaker
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • khanakhh
  • JUstTest
  • InstantRegret
  • GTA5RPClips
  • Durango
  • normalnudes
  • cubers
  • tacticalgear
  • cisconetworking
  • tester
  • modclub
  • provamag3
  • anitta
  • Leos
  • lostlight
  • All magazines