How can I know that there is a chance of optimization in my JS written code? Any tool or any technique?
Maneesh,
I think, you are asking more on code optimization than customisation (title says, customisation).
In my opinion, to optimize, we need to first understand the scope of optimization and where/what to optimize. There are tools available to help us.
Apart from the tools indicating the optimization scope, following standard coding practices and design principles would also direct us towards it.
TheSheriff
Co-Founder, Founder, Entrepreneur & Problem Solver
A few things to consider, for any language, then a couple of things specific to JS.
Specifics for javascript:
Check out this comment I gave for a very similar question: hashnode.com/post/what-is-difference-cjy15gkwy002…
You can also manually check by comparing
performance.now()values either side of a section of code execution. Then refactor some parts and then try again and iterate.