
Ex-Chromium/TypeScript/Webpack/Angular/Nuxt/VSCode/Flutter contributor. 10+ years full-stack. Now obsessed with AI agents & shipping solo products
Joined April 2017
- Tweets377
- Following6.2K
- Followers251
- Likes13.9K
Zuckjet retweeted
This is such a common misconception and I don't know how to get people to correct their knowledge.
@TestingLib does not use JSDOM. Testing Library uses whatever DOM is available in the global environment. Testing Library is actually pretty optimized and runs fast in a real browser. It's JSDOM that's slow (because JavaScript). If you're having perf issues, it's because you're running in a simulated DOM environment, not because you're using byRole queries.
How do you speed things up?
1. Maybe don't worry about it?
2. Check these docs: testing-library.com/docs/que…
3. Run tests in a real browser (like playwright which has testing library queries built-in).
Warning: ⚠️ If you’re:
1. Using @TestingLib
2. Using getByRole
3. Testing on a page with many DOM elements…
Then getByRole may be slow.
Why? Because getByRole is "expensive", and @TestingLib uses JSDOM. JSDOM is written in JS, and thus, slower than the browser.
3 solutions:
1. Set hidden to true (avoids expensive visibility checks)
2. Use getByLabelText or getByText instead. They're faster.
3. Test in Playwright instead. (Playwright locators are inspired by @TestingLib). Since Playwright runs in a real browser, getByRole is fast.
Zuckjet retweeted
Today we’re excited to announce Speedometer 3 in collaboration with @googlechrome, @Firefox, & @MicrosoftEdge. This benchmark measures speed & guides browser teams as they make websites & web apps run faster than ever — now with a new generation of tests. webkit.org/blog/15131/speedo…
Zuckjet retweeted
Tip: @ChromeDevTools can now override the content of Fetch/XHR requests! Great for mocking APIs without waiting on backend changes!
This and lots more in Chrome 117: bit.ly/wnd117
Zuckjet retweeted
I've been using this debugger trick (I think I got this from SO) to inspect disappearing elements in Chrome.
1. Use a timeout for a debugger.
2. Do your thing.
3. Wait for debugger to hit.
4. Inspect.
Is there a better way to do this in devtools?
Zuckjet retweeted
这个案例很好,
一个24岁的印度程序员花了3个月开发的基于Notion的CMS发布平台,
上线半年就实现了1500美金的月收入。很好的诠释了“借势”和“精益创业”
详细案例解析见下图 – at Shanghai, People's Republic of China
Zuckjet retweeted
Today we are excited to open the first PR of our exploration into fine-grained reactivity! 🚦
This is the foundation to allow prototyping & amplify the value of an upcoming RFC on our plans to introduce a new reactive primitive into Angular.
Read more: goo.gle/ng-watch-this-space
Zuckjet retweeted
*Exciting*
@Angular improvement we developed with @ChromeDevTools that will benefit *every* developer *daily* 🔥
Starting in v15 stack traces will be:
‣ Relevant - only app code
‣ Linked - trace between async tasks
‣ Friendly - better call frame names (coming soon)
Improved Dev Tools
Code snippet showing improvements to stack traces in Angular v15 developed with Chrome DevTools.
Zuckjet retweeted
🔥 Stop find-and-replacing in VS Code, use "replace symbol" to get safer replaces across your files and preview the changes first! Works with most languages including TS, JS and CSS.
Zuckjet retweeted
This is a huge bug. On OSX, Safari users can (temporarily) switch to another browser to avoid their data leaking across origins. iOS users have no such choice, because Apple imposes a ban on other browser engines. safarileaks.com/
Zuckjet retweeted
I'm excited to share my first new book (or e-book) in over five years! Understanding JavaScript Promises explains not just how promises work but also how to use them in the real world.
And the best part? It's free. Grab yours now.
https://nitter.cf/t.co/BydS3RpqOv
Zuckjet retweeted
AMA - Ask us anything! 📣
We are excited about Angular in 2022 - what questions do you have for our team? #AngularAMA
Zuckjet retweeted
Looking at hundreds of Angular apps over the years, I found that majority of performance problems fit into the following categories:
‣ Zone pollution
‣ Out of bounds change detection
‣ Recomputation of referentially transparent expressions
‣ Large component trees
🧵 1/6
Zuckjet retweeted
1³+2³+3³+4³+5³+6³+...+n³=(1+2+3+4+5+6+...+n)²
Proof:
Arranging 1³+2³+3³+4³+5³+6³+...+n³ in the plane: 1x1²+2x2²+3x3²+4x4²+5x5²+6x6²+...+nxn²
The even squares overlap (🟨) but also leave uncovered gaps (🟥) and 🟨=🟥
Zuckjet retweeted
Our team is excited to announce the release of Angular v12! ♥️
#ngUpdate to see:
🌿 Ivy-first library distribution
🔐 Prod mode & strict mode by default
🧨 Production Webpack 5 support
🚀 Inline Sass
💫 Inline critical CSS
Read all about the release → goo.gle/angular-v12
Zuckjet retweeted
Tip: Remove unused CSS from production builds of your CSS libraries.
My @TailwindCSS was ~294KB gzipped. With PurgeCSS and a safelist, improved Largest Contentful Paint by ~1.8s & CSS size to ~9KB (even less w/Brotli) goo.gle/tailwcss
Zuckjet retweeted
An elderly woman attacked on Market St. in San Francisco Wednesday and turned the tables on her attacker, leaving him with injuries that required a trip to the hospital. Serves him right! #StopAsianHate
#StopAAPIHate
🎥 @denniskpix
@kpixtv
Zuckjet retweeted
angular-cli-ghpages allows you to deploy your Angular app to GitHub pages directly from the Angular CLI! 🚀
npmjs.com/package/angular-cl…
Zuckjet retweeted
IT'S HERE: Piper Make, available now in your browser on Mac, PCs, and @Google Chromebooks! Start inventing with the new @Raspberry_Pi Pico using our drag-and-drop coding platform! 🧑💻🥧
Try it out at make.playpiper.com!
#WhatWillYouCreate #STEMeducation #RaspberryPiDay
Zuckjet retweeted
Are you interested in how Angular's runtime works under the hood? We use a lot of low-level optimizations to ensure monomorphic code for faster execution & low memory usage.
Read about Ivy's internal data structures below ✨
Curious about the internals of Ivy? 🌿 👀
@mhevery explains all the details in our latest blog post ↓
goo.gle/ivy-internals























