Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:13:52+00:00 2026-06-09T18:13:52+00:00

I noticed while testing Masonry that if I shift-reload in Firefox (to hard reload),

  • 0

I noticed while testing Masonry that if I shift-reload in Firefox (to hard reload), then the layout would be off by the height of any image in the page. I think the div heights must depend on knowing the image height, which makes sense.

Since I’m already using jquery.waitforimages.js, I added this at the end of my page and my script:

$wall.waitForImages(function() {

    $wall.masonry( 'reload' );

});

Although everything works, now I have an error that I see in Firebug, which only occurs if I don’t hard-reload. So I’m assuming this error happens when the image is already cached: “cannot call methods on masonry prior to initialization; attempted to call method ‘reload'”.

Is there a way out of this?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:13:54+00:00Added an answer on June 9, 2026 at 6:13 pm

    Answer: Use the script called imagesLoaded with Masonry, since the same author wrote both & they work together.
    Script: https://github.com/desandro/imagesloaded/

    In your jQuery, something like:

        $wall = $('#mydiv');
        $wall.imagesLoaded(function(){
                // call your layout function, something like:
                // layoutBricks();
        });
    

    This should help avoid the Heisenbug. I have not tested this new image loading script on my other gadgets, so I don’t know about that yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed while testing my website that the font-size in fields on FF 3.5
I noticed something interesting while testing the client side validation on a website that
While testing my application in today's release of iOS 5.1 GM, I noticed that
I noticed while testing my library that VS2010 will throw an error if I
While performance testing, I noticed something interesting. I noticed that the very first insertion
Have noticed issue while testing iphone app that if one quickly opens/dismisses a modal
While testing my web app for iOS, I noticed that CSS3 animations were hardware-accelerated
My time zone is CET (Berlin). And while testing Joda's DateTime i noticed some
I noticed while making a program that a lot of my int type variables
I noticed that many times while developing for an iPhone 3G, BSD socket functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.