Out of curiosity, I wonder how to make the best (easiest, fastest, shortest, etc.) for executing a GET request in JavaScript without using AJAX or any external libraries.
It must work with a cross browser, and it cannot distort the web page of the hosting visually or in any way affect its functionality.
I do not need headers in the request, only part of the url. I also don't care about query results. I just want the server to do something as a side effect when it receives this request, so it all matters. If your solution requires the servers to return something in particular, this is normal.
I will send my own suggestion as a possible answer, but I would love it if someone could find a better way!
Jakob source
share