@reactive_dude I think Tailwind is more suitable for 'raw' development, while Bootstrap for boilerplates and themes. I've tried to combine PrimeNG with Tailwind, turns out the Tailwind breaks almost all the elements and it's a pain in the ass to refactor many things from the start.
@tomastrajan How it actually detects if the element was not rendered yet? fromEvent failing to bind? (im guessing)
If yes, seems a bit magic, at least deservers inside code comment. :)
How to implement robust infinity scroll with #Angular (and Angular Material sidenav) with #RxJs 7
✅ lazy
✅ robust (retry if element wasn't rendered yet)
✅ perf conscious (debounce processing)
✅ configurable (define "bottom")
Tailwind CSS v3.0 is here — bringing incredible performance gains, huge workflow improvements, and a seriously ridiculous number of new features.
Read the announcement post for all the details 👉
tailwindcss.com/blog/tailwindc…
I am currently experimenting with #Angular-Testing-Library and Angular-Material-Harnesses to make testing more attractive and easy for my new colleagues. In my last project where I worked on it for 2 years, it was painful to write tests with standard tools.
@TestingLib@angular
LInQer: C# Language Integrated Queries (LINQ) but for JavaScript - github.com/Siderite/LInQer (Use fluent, chainable methods like `where`, `select`, and `groupBy` to work with data.)
@LeaVerou@jsperf Ok, but A is harder to understand for me, personally i would never write code like this. Maybe with additional comment if it was significantly faster.
Ever wondered what's the fastest way to split a string by commas & ignore whitespace?
I used @jsperf to compare these two:
A) str.trim().split(/\s*,\s*/);
B) str.split(",").map(s => s.trim());
Results: A is faster in Chrome, Safari, Edge. B in Firefox!
jsperf.com/split-by-comma…