It would be great if there was a version that didn't try to self initialize. The current way causes problems with server side rendering frameworks like Nuxt.js. It seems masonry tries to run itself on the server, when window and a DOM don't exist, and cause all sorts of errors. Or perhaps you can add a check to the initialize function that won't run if window is undefined?
It would be great if there was a version that didn't try to self initialize. The current way causes problems with server side rendering frameworks like Nuxt.js. It seems masonry tries to run itself on the server, when
window
and a DOM don't exist, and cause all sorts of errors. Or perhaps you can add a check to the initialize function that won't run ifwindow
is undefined?