Recent Posts
Not Blogging Daily
I’m abruptly and likely indefinitely ceasing to blog daily.
Convert NodeList to Array in JavaScript
This JavaScript snippet converts a NodeList to an array.
Reactive Blocks in Svelte
Svelte’s reactive blocks reload their contents each time a variable changes.
Check Whether Browser Tab Is Focused in JavaScript
This JavaScript snippet determines whether the current browser tab is focused.
Ignore Accessibility Warnings in Svelte
You can disable Svelte compiler warnings with comments.
Redirect HTTP to HTTPS in JavaScript
This short JavaScript snippet for the browser redirects the user to HTTPS, if possible.
Check For Passed Slot in Svelte
You can check if a slot has been passed to a child component in Svelte.
Convert Degrees to Radians in JavaScript
This JavaScript snippet converts degrees to radians.
Create AMP-Compatible Site in Svelte
SvelteKit has a configuration option to enable AMP.
Convert Array to CSV in JavaScript
This short snippet formats a given JavaScript array as CSV.