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
    • /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

  • Image representing post: Making It Boring

    Making It Boring

    Jeremy Wagner proposes that the Web should be made more boring to make it usable by more people, more of the time, and faster. With Dan's comments.

    Read more (220 words)

    • Repost
    • posted 26 December, 2019
  • Using JSLint For Evil - YouTube

    JSON inventor Douglas Crockford explains why he gave permission for the reference implementation of JSLint to be used for evil.

    Read more (23 words)

    • Repost
    • posted 8 October, 2019
  • Image representing post: Cheating Hangman

    Cheating Hangman

    Dan implements "Cheating Hangman", perhaps the cruellest hangman game you'll ever play.

    Read more - about 4 minutes (728 words)

    • Article
    • 21 comments
    • posted 26 September, 2019
  • Screen showing: "Dan will be gone in 153 hours, 54 minutes, 38 seconds."

    Counting Down

    I wasn't sure that my whiteboard at the Bodleian, which reminds my co-workers exactly how many days I've got left in the office, was attracting as much attention as it needed to. If I don't know what my colleagues don't know about how I do my job, I can't write it into my handover notes.

    So …

    Read more (232 words)

    • Article
    • 2 comments
    • posted 3 September, 2019
  • The Real Dark Web

    An analogy between dark matter and the huge crowd of web developers who are using such "boring" technology stacks.

    Read more (418 words)

    • Repost
    • posted 29 August, 2019
  • Browsers are pretty good at loading pages, it turns out

    Carter Sande observes that MDN ran faster on old-fashioned hyperlinks than it did with Javascript background loading, and explains why.

    Read more (369 words)

    • Repost
    • posted 22 July, 2019
  • JavaScript frameworks are better for accessibility (and other myths)

    Chris Ferdinandi counters a Twitter user's argument that web frameworks solve a plethora of common web development challenges, and he's right.

    Read more (298 words)

    • Repost
    • 1 comment
    • posted 18 July, 2019
  • Image representing post: Reply to: A modern font loading strategy with the vanilla JS FontFaceSet.load() method

    Reply to: A modern font loading strategy with the vanilla JS FontFaceSet.load() method

    Chris Ferdinandi's suggestion of using FontFaceSet.load() to prevent FOIT seems overkill. What's wrong with font-display: swap;?

    Read more - about 4 minutes (760 words)

    • Reply
    • 1 comment
    • posted 22 June, 2019
  • The problem with single page apps

    Chris Ferdinandi shares his concerns about SPAs, and I echo with my own.

    Read more (415 words)

    • Repost
    • 1 comment
    • posted 13 June, 2019
  • Image representing post: Going Critical

    Going Critical

    A fabulous and interactive exploration of network interactions. Treat as a longread (with some opportunities to play as you go along).

    Read more - about 3 minutes (485 words)

    • Repost
    • posted 24 May, 2019
  • JavaScript and the mobile-only user

    Chris Ferdinandi provides further arguments about why Javascript must be considered a progressive enhancement.

    Read more (315 words)

    • Repost
    • 2 comments
    • posted 22 May, 2019
  • Why do people choose frameworks over vanilla JS?

    This week on Twitter, Maxime Euzière asked why people choose large frameworks over vanilla JS. There are quite a few reasons. Some of them are really valid. Many of them aren't.

    Read more (256 words)

    • Repost
    • posted 25 April, 2019
  • Yet Another JavaScript Framework

    ...
    It is impossible to answer all of these questions simply. They can, however, be framed by the ideological project of the web itself. The web was built to be open, both technologically as a decentralized network, and philosophically as a democratizing medium. These questions are tricky because the web belongs to no one, …

    Read more (172 words)

    • Repost
    • posted 13 April, 2019
  • Image representing post: How many people are missing out on JavaScript enhancement?

    How many people are missing out on JavaScript enhancement?

    few weeks back, we were chatting about the architecture of the Individual Electoral Registration web service.  We started discussing the pros and cons of an approach that would provide a significantly different interaction for any people not running JavaScript.

    "What proportion of people is that?” an inquisitive mind asked.

    Silence.

    We didn’t really have any idea how many …

    Read more (471 words)

    • Repost
    • 5 comments
    • posted 23 March, 2019
  • Minimal Google Analytics Snippet

    <script>
    (function(a,b,c){var d=a.history,e=document,f=navigator||{},g=localStorage,
    h=encodeURIComponent,i=d.pushState,k=function(){return Math.random().toString(36)},
    l=function(){return g.cid||(g.cid=k()),g.cid},m=function(r){var s=[];for(var t in r)
    r.hasOwnProperty(t)&&void 0!==r[t]&&s.push(h(t)+"="+h(r[t]));return s.join("&")},
    n=function(r,s,t,u,v,w,x){var z="https://www.google-analytics.com/collect",
    A=m({v:"1",ds:"web",aip:c.anonymizeIp?1:void 0,tid:b,cid:l(),t:r||"pageview",
    sd:c.colorDepth&&screen.colorDepth?screen.colorDepth+"-bits":void 0,dr:e.referrer||
    void 0,dt:e.title,dl:e.location.origin+e.location.pathname+e.location.search,ul:c.language?
    (f.language||"").toLowerCase():void 0,de:c.characterSet?e.characterSet:void 0,
    sr:c.screenSize?(a.screen||{}).width+"x"+(a.screen||{}).height:void 0,vp:c.screenSize&&
    a.visualViewport?(a.visualViewport||{}).width+"x"+(a.visualViewport||{}).height:void 0,
    ec:s||void 0,ea:t||void 0,el:u||void 0,ev:v||void 0,exd:w||void 0,exf:"undefined"!=typeof x&&
    !1==!!x?0:void 0});if(f.sendBeacon)f.sendBeacon(z,A);else{var y=new XMLHttpRequest;
    y.open("POST",z,!0),y.send(A)}};d.pushState=function(r){return"function"==typeof d.onpushstate&&
    d.onpushstate({state:r}),setTimeout(n,c.delay||10),i.apply(d,arguments)},n(),
    a.ma={trackEvent:function o(r,s,t,u){return n("event",r,s,t,u)},
    trackException:function q(r,s){return n("exception",null,null,null,null,r,s)}}})
    (window,"XX-XXXXXXXXX-X",{anonymizeIp:true,colorDepth:true,characterSet:true,screenSize:true,language:true});
    </script>

    Minimal Analytics
    This is cute: a Google Analytics code snippet that results in a payload about a fiftieth of the size of the …

    Read more (314 words)

    • Repost
    • posted 20 February, 2019

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!