How to perform the initialization of the plugin (JS, jQuery code), with a screen larger than 768px?
This is how the problem was solved, but this only works if you move the screen with the browser, but I need it to act immediately, and not resize the screen (try to explain it to the user =)
window.onresize = function () { if (window.innerHeight >= 768) { // ΠΠ½ΠΈΡΠΈΠ°Π»ΠΈΠ·Π°ΡΠΈΡ var $container = $('#container'); $container.masonry({ columnWidth: 232.5, itemSelector: '.item' }); } };