Situation: the page has loaded, but in the same block is still uploading the data and generate an html code with these data. So load the list of news. The process takes no more than a couple seconds, but $(function) has worked and now when I want to cycle through loaded units
$(".news__item").each(function(indx, element) {
console.log('1');
});
on the console nothing is shown. How to be?