Web developer.

Uppsala, Sweden
Joined March 2009
Make work a piece of the life puzzle, not the frame for it.
0
0
1
11ty: It just works™️ It's been nagging me that HTML+Liquid auto format works so-so w/ Prettier. Understandable. For that reason I renamed the partial, in watch mode, from .html to .md to see if Markdown code blocks works better. @eleven_ty be like: "OK, buddy! Markdown is 👍"
0
2
10
✏️ I entered the maze that is GCP's documentation. I hope this helps a little bit if you're going to send requests to HTTP Functions with C#. jouni.kantola.se/blog/2021-0…
0
0
1
TIL navigator.sendBeacon() "in the future, analytics.js will likely switch to using 'beacon' as the default mechanism in browsers that support it" developers.google.com/analyt…
0
0
0
From a #perfmatters perspective, are there other web analytics services that can match this?
If you don't care about returning users, here's GA pageview tracking in a tweet: fetch('google-analytics.com/collect?' + new URLSearchParams([ ['v', '1'], ['t', 'pageview'], ['tid', 'UA-XXXX-Y'], ['cid', Math.random()], ['dl', location] ])) (replace UA-XXXX-Y with your ID)
0
1
0
✏️ The camera I used some 10 years ago, barely survived the salty waters of Malaysia, but my avatar is now a favicon set. Here's how that came about. jouni.kantola.se/blog/2021-0…
1
0
1
Tidbit about the code snippet formatting: I always aim for readability on my iPhone SE. The code is formatted with @PrettierCode set to "printWidth": 40.
0
0
0
Took a stab at improving performance for jouni.kantola.se. It's pretty fast now. The infra and DX enabled by hosting on @Netlify and @Cloudflare is awesome. 💯
0
0
0
Jouni Kantola retweeted
All JS bundlers + runtimes now support Package Exports. As you add the "exports" field to your npm module, please remember: modules referenced via "exports" can include modern syntax. Adding exports is a semver-major change. It's a great opportunity to publish modern code too.
17
169
777
Down to one date configuration per blog post. @eleven_ty shines like always! 💯 ✅Filters to generate ISO date or in yyyy-MM-dd. Used in feed layout and blog's published time element. ✅Permalink format defined in layout.
0
1
2
Show this thread