News for hackers. Stuff that matters.
Re:These are called opportunities by sangnoir on Thursday December 03, 2020 @02:49PM (#25293726)
> It is easy to debug a js function, but what about when you use angular or any other js framework ?

As someone who worked on a successful web-application perf-improvement project in a past life, my top 3 tricks were: 1. Profile, and use flame-graphs & call-graphs (with counts) to identify which parts are slow 2. Don't do unnecessary work 3. Execute code asynchronously whenever possible (requires balancing with code readability)

Not doing unnecessary work may be straight forward, and sometimes very complicated. Simple: some results are discarded, or some expensive functions are called for a minor side-effect just because developers were told to "maximize code reuse" at all costs. Complicated: understanding which function calls that unexpectedly block/delay browser rendering/painting

There are no comments on this comment yet.