I am making an ajax "GET" request to get google wikipedia data in my application. I want to get the progress in numbers to feed it to my loading progress bar. Is there any way to do this for "GET" request? All the solutions available are either for upload or "POST".
THis is my request code
let params = {
'query': this.state.info_search_text,
'limit': 10,
'indent': false,
'types': 'Person',
'prefix': true,
'key': 'AIzaSyDuttGdbTLwBlVWunqGPdgUrb1c2gXwPYk'
};
$.getJSON(service_url + '?callback=?', params, (response) => {
this.setState({
infoSearchResults: response.itemListElement,
showLoadingBar: false
}, () => {
console.log(this.state.showLoadingBar)
});
});