@
[email protected]
> that is loaded dynamically
my brother(?) in christ, you just open the freaking devtools and replicate that request
also there are jsdom/happy-dom which implement most of the browser apis, allowing you to headlessly execute some code *if you really need to* (though it does raise some security concerns)
> much longer
the performance difference is negligible. and htmls usually don't weigh megabytes. and also most of the time you don't even need to parse html. spa-s are everywhere, so you can just imitate the frontend app using the apis it is using.
additionally there may also be a mobile app, which uses proper apis like 99% of the time. and those apis are usually even more stable then the web ones, since devs try to maintain backwards compatibility (because people don't really like updating the app)