Hello,
Read this post to find ways of parsing JS https://kinsta.com/blog/defer-parsing-of-javascript/
Regards