What's the problem with plugins hotel when you add blocks?

test6.cf21443.tmweb.ru the Problem is that when you press the button to show separativity and then they run into the previous one!
Here is the code Ajax for adding blocks https://jsfiddle.net/8m8vdcow/ what you need to add or replace blocks normal output and do not run at each other. I beg you "Help" the timing of the project has already ended and the project is not ready yet. I have verouden fuck** on this plugin!!!((((((((
July 8th 19 at 15:53
1 answer
July 8th 19 at 15:55
Try this:
var container = $('#grid');
response = $(response);
container.append(response).imagesLoaded().done(function() {
 container.masonry('appended', response);
})
do not prompt where to insert or replace where - coty.Cassin67 commented on July 8th 19 at 15:58
this snippet :
$items.imagesLoaded(function () {
 $container.masonry( 'appended', $items );
 });

on

if ($this.data('no-masonry') != true) {
 $items.imagesLoaded().done(function () {
 $container.masonry( 'appended', $items );
});
}
or the one above
those you call the hotel only after dB load pictures. - Garfiel commented on July 8th 19 at 16:01
: replaced and nothing - coty.Cassin67 commented on July 8th 19 at 16:04
weird. if you haven't solved the problem, this MB just because of the height calculation unit to obtain the image dimensions. - Garfiel commented on July 8th 19 at 16:07

Find more questions by tags AJAXJavaScriptHTMLCSS