Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Semi-standard "slash pages" you might like to explore:
    • /about
    • /blank
    • /blogroll
    • /colophon
    • /contact
    • /cv
    • /domains
    • /events
    • /license
    • /pfp
    • /postcards
    • /privacy
    • /salary
    • /shh
    • /slashes
    • /stats
    • /subscribe
    • /where
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

Tag: javascript

  • Composite screenshots showing the Chrome performance metrics and Network download sizes for the React and Web Components versions of my traffic lights. LCP - React 0.06s, Web Components 0.04s. INP - React 16ms, Web Components 8ms. Transferred - React 62.3kb (compressed), 202kB (uncompressed), in 37ms, Web Components 5.2kB (compressed), 19.5kB (uncompressed), in 22ms.

    Deprecate React

    Just to reassure myself that I really can do all the things I say on my CV, I've been looking at tech tests that touch on each of them. I can definitely write React, for example... but... I might question the wisdom of a company that's exclusively recruiting for React skills in their front-end developers...

    Read more - about 6 minutes (1406 words)

    • Article
    • 6 comments
    • posted 26 April, 2025
  • Two red lines are perpendicular to one another, followed by horizontal lines in green, semitransparent red, red, green, and semitransparent green. Each are labelled with their axis in a 7-dimensional space, and with a clarifying tooltip.

    AI vs The Expert

    Inspired by an 11-year old comedy sketch, I asked a GenAI to solve an unsolvable programming problem... and (for at least some models) it failed in exactly the way I anticipated: claiming to be able to solve it and delivering code that just... didn't. What does this teach us about AI trustworthiness for problems that might be solvable, but for which the human operator doesn't have sufficient comprehension to verify?

    Read more - about 5 minutes (1160 words)

    • Article
    • with an accompanying podcast
    • 5 comments
    • posted 28 February, 2025
  • Reply to Vika, re: Content-Security-Policy

    Vika shared her frustrations with Content-Security-Policy nonces when delivering pre-generated/cached content. I've had a similar fight, so I've written-up a few of the things I tried and what I learned as a result.

    Read more - about 4 minutes (736 words)

    • Reply
    • 2 comments
    • posted 20 February, 2025
  • A pop-up notification indicating that the terms have been updated. The message states that by accepting, users agree to the updated Terms of Service, which includes an arbitration provision and class action waiver. It also mentions the processing of user information as described in the Privacy Policy, including potential sharing with third parties about the use of Bloomberg.com. A button labeled "Accept" is provided for users to acknowledge the terms.

    Bloomberg's Terms

    Chris Messina remarked about the insane terms and conditions that Bloomberg.com require you to agree to in order to read a news article, effectively signing away your rights. Except... I don't see the dialog: I just see the articles. I haven't given consent, and they can't conceivably prove to the contrary... ๐Ÿ˜ˆ

    Read more - about 3 minutes (695 words)

    • Repost
    • of this original
    • posted 17 February, 2025
  • Today I learned that you can use reportValidity() on a HTML5 input of e.g. type="email" to force the browser to run it's own validation, without waiting for the containing form to be submitted (which in some cases might not happen, e.g. if you're handling input using JS).

    That's cool.

    • Note
    • posted 11 December, 2024
  • A blog post being inhaled by an animGIF of Kirby.

    kirby vs. this blog post

    mgx shows off a cute use of Javascript to make a fun blog post post more-fun, all the while helping to keep the Internet fun and weird.

    Read more (64 words)

    • Repost
    • of this original
    • posted 3 December, 2024
  • Me, hacking challenging Javascript at work: "Damn, I need a holiday."

    Full image of Dan sits at a laptop in a hotel bar, a view of Barcelona out of the window behind him, a beer bottle alongside him.
    Alt

    Dan sits at a laptop in a hotel bar, a view of Barcelona out of the window behind him, a beer bottle alongside him.

    Me, hacking challenging Javascript on sabbatical: "Ah, so relaxing."

    • Note
    • posted 27 October, 2024
  • A blog comment by Pablo Picasso, in his blue period, of a ladybird saying "hi".

    Draw Me a Comment!

    Instead of typing a comment for me to read, you can now draw one! Please don't make me regret this, Internet (๐Ÿ†).

    Read more (300 words)

    • Article
    • 44 comments
    • posted 15 August, 2024
  • Overlay attempting to block content to the page beneath, saying "Try 1 year for just ยฃ9.99 and save 81%".

    Good Food, Bad Authorisation

    (BBC) Good Food has started adding "premium" content for which you have to install their app and pay for a subscription. Except the paywall they've put in place is so weak that I fell through it without even meaning to. It's a great - and relatively harmless - example of how front-end-first development is undermining the development of secure Web systems.

    Read more - about 3 minutes (507 words)

    • Article
    • 1 comment
    • posted 19 July, 2024
  • Partial dungeon battlemap with a "flower" theme, showing an unrevealed passage.

    Multi-Phase Maps in FoundryVTT

    Using FoundryVTT's powerful API and a little bit of JavaScript code, we can easily produce a battlemap that changes through a series of phases as the adventure progresses. Here's how...

    Read more - about 5 minutes (1024 words)

    • Article
    • posted 24 May, 2024
  • Three different sandwiches float in a featureless white void.

    Reversing Sandwiches

    Userscripts are awesome, and you should be using them. Let me rotate some sandwiches for you to demonstrate their versatility!

    Read more - about 3 minutes (522 words)

    • Article
    • posted 5 April, 2024
  • DanQ.me in "Party Mode", with ludicrous colour patterns.

    April Features!

    The start of April's a perfect time for a "Spring refresh" of a personal website. This year, I'm enabling a handful of experimental new features; visit DanQ.me and you might randomly be selected to try one out!

    Read more (100 words)

    • Article
    • 3 comments
    • posted 31 March, 2024
  • JigsawExplorer simultaneously showing a box top preview and a message saying the box top preview is disabled, superimposed with the message "LOL, no it ain't!"

    Quickly Solving JigsawExplorer Puzzles

    A fellow jigsaw-hating geocacher, familiar with my work on Jigidi, challenged me to find a way to bypass JigsawExplorer too. Here's what I came up with...

    Read more - about 3 minutes (480 words)

    • Article
    • 15 comments
    • posted 28 March, 2024
  • Screenshot showing an expanded "theme switcher" menu on a Website.

    Shiftless Progressive Enhancement

    Today a 7-year-old helped remind me that progressive enhancement doesn't have to mean render-blocking DOM manipulation nor ugly layout shifts.

    Read more - about 3 minutes (557 words)

    • Article
    • 3 comments
    • posted 6 February, 2024
  • Image representing post: Solving Jigidi... Again

    Solving Jigidi... Again

    The Jigidi jigsaw solver I wrote a year and a half ago stopped working, so I made another one (it's not as good).

    Read more - about 4 minutes (814 words)

    • Article
    • 28 comments
    • posted 20 March, 2023

Posts navigation

Older posts
Newer posts

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!