2

I have this site that is built using the jQuery Masonry plugin, the site works great in Firefox and Chrome, however on first run on IE9 the layout is broken and it seems Masonry is not being loaded.

This is the error that is output into the console of IE9.

cannot call methods on masonry prior to initialization; attempted to call method 'appended'

Here is a link to the staging site: http://rw.freelanc3r.co.uk/ please view in Chrome or Firefox before IE to see the desired outcome.

I understand there are no images on the page, please ignore this minor defect.

2

1 Answer 1

4

I suspect there may be a problem with the fact that the Masonry initializing code is placed inside the imagesLoaded callback and none of your images are actually loading. FF, Chrome, and IE9 may have different behavior regarding how they handle this situation.

Does the problem still happen when the page has loading images?

1
  • Thanks Rob, that fixed the error it was looking for images and breaking on that point. Greatly appreciated for your help
    – Xavier
    Dec 11, 2011 at 13:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.