News for hackers. Stuff that matters.
Re:Show HN: SentinelJS – Detect new DOM nodes using CSS sele... by rstacruz on Monday September 18, 2017 @05:31AM (#15274457)
Nice work! I've also done a similar thing (https://github.com/rstacruz/onmount), and it's really useful in managing behaviors in a page.

For those wondering what this is for, I've written a document with guidelines in building scalable non-SPA apps leveraging this: http://ricostacruz.com/rsjs

Re:Show HN: SentinelJS – Detect new DOM nodes using CSS sele... by skrebbel on Monday September 18, 2017 @06:01AM (#15274568)
Wow, rsjs is really neat! Thanks! Totally going to use that on our dashboard.
Re:Show HN: SentinelJS – Detect new DOM nodes using CSS sele... by Lord_Zero on Monday September 18, 2017 @10:32AM (#15276277)
Is it just me or do these approaches seem hacky? If you were using something like Angular or React wouldn't you plug into lifcycle events that are exposed by the library like Abgular's OnInit?
Re:Show HN: SentinelJS – Detect new DOM nodes using CSS sele... by rstacruz on Tuesday September 19, 2017 @12:31AM (#15281793)
if you were using something like Angular or React to manage your full page, then by all means run with it! RSJS is an alternative to that that's more suited for "traditional" sites rendered on the server (eg, traditional Rails and Rails-like setups).
Re:Show HN: SentinelJS – Detect new DOM nodes using CSS sele... by aoeusnth1 on Monday September 18, 2017 @08:04AM (#15275094)
Rsjs looks pretty great, thanks.