pro tip: if you are doing any kind of browser automation make sure to utilize TAB and ENTER key as much as possible. it will be much easier than finding random elements and clicking through it. I wish someone would have told me earlier. 😢

#automation #python #javscript #puppeteer #QA

🚩✊️️️️️ Friday is Dependency Deletion Day! If you're still using a JS library to scroll to elements, you not only need to change that for the usual reasons, but also because native scroll functions integrate with the CSS property scroll-behavior[0]. This makes it trivial to respect the user's prefers-reduced-motion preferences.

[0] https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/scroll-behavior

#javscript #css #webdev

Can we just stop minifying JS

Just don’t

Stop

#webdev #javscript

@[email protected] @skyfaller Don't use #Cloudflare, please. You're making the Internet worse by sprinkling it on top of everything, sharing all your user data with a private USA-based corporation, and making an already huge attack vector even bigger. A Cloudflare outage already has huge impacts because too many people just shove it in their stack without thinking about the consequences.

Anubis'
#Javscript free version is acceptable in my opinion.

Happy New Year Excalibur.js!

Check out all the cool game stuff that happened in 2024, and our plans for the future!

https://excaliburjs.com/blog/happy-new-year-excalibur-2025/

#typescript #javscript #excaliburjs #gamedev

Happy New Year Excalibur! | Excalibur.js

We've put together a fireworks demo to commemorate the occasion!

The Nullish Coalescing Operators - JS in 3 minutes or less - Medium

You may be familiar with the conditional ternary operator (a ? b : c), but there’s a lesser known binary operator (a ?? b) that simplifies cases where the value of one parameter is used as a fallback…

JS in 3 minutes or less

Hey #Javscript developers - on a scale of 1 to "Rob Z. has lost his fucking mind" how bad does this look to you?

How do you validate deep-cut fields in a large object structure?

And, before you get on me about nesting objects and such - yes, my data models need some work (there's a "details.details" in there, FFS) but I am finding this is one of the better ways to handle the complexity of this system without tearing my hair out.

<#Throbber> owl:sameAs dbpedia:Throbber. #Nanotation #Javscript

#tinyJStip You can use the padStart() function to generate things like file names with leading zeros within a loop.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart

#js #javscript #coding #frontend #webDev #webDevelopment

String.prototype.padStart() - JavaScript | MDN

The padStart() method of String values pads this string with a given string (repeated and/or truncated, if needed) so that the resulting string has a given length. The padding is applied from the start of this string.

MDN Web Docs