$('[data-cover]').each(funtion(){
var rThisWidth = $(this).get(0).naturalWidth; //считает
var rThisHeight = $(this).get(0).naturalHeight; //считает
var rParentWidth = $(this).parent().width(); //выводит 0
var rParentHeight = $(this).parent().height(); //выводит 0
})
url:"https://www.instagram.com/"+ $name +"?__a=1",
type:'get',
success:function(response){
$( '.feedback-slider-item-pic' ).attr('src',response.graphql.user.profile_pic_url);
}
jQuery( '.feedback-slider-item-pic' ).each(function(){
$name = jQuery( this ).attr('alt');
if ( $name !== '' ) {
$.ajax({
url:"https://www.instagram.com/"+ $name +"?__a=1",
type:'get',
success:function(response){
$( this ).attr('src',response.graphql.user.profile_pic_url);
}
});
}
});