1
I wonder if there is a date volume with better performance in a Xmlhttprequest request via GET or if the performance is always directly proportional to the date amount
var request = new XMLHttpRequest();
request.open('GET', 'arquivo.php?data=muita_data', true);
request.onload = function() {
if (this.status >= 200 && this.status < 400) {
var resp = this.response;
}
}
request.send();
Graphically, my question is whether there is this, assuming that sending 3kb would be the best situation:
Thank you
Data via GET are sent through the URL and therefore follow the size limitations of the URL.
– Woss
Thank you, I would like help for performance questions... good the answer of 2kb p/all, but wanted to understand the performance curve for date size; think better to change the question?
– Leonardo Negrão
Yes, mainly highlighting how you want to analyze performance.
– Woss
Thank you, I tried to make it clear
– Leonardo Negrão
Something that may be important for your analysis: URL is an opaque value and not reflects the application then by definition it should not interfere in the performance of the same.
– Woss
I understand, I refer in the question to the consumption performance of the file that will be opened (that will receive the request)... if this is not clear, I will probably have to reformulate the question
– Leonardo Negrão