I\'ve got this piece of code:
$(document).ready(function () { $.getJSON(\'http://localhost:5000/\', function (response) { console.log(response);
function cinta(){ $.getJSON('http://localhost:5000/', function (response) { console.log(response); }); } cinta(); $(document).ready(function () { console.log('yesss'); });
This work for me in python flask