jQuery : Fancy Box : hide the spinning ‘Loading Image’ explicitly

I have a loading image uniform throughout my application. When fancybox popup appears it also shows the loading image and there are two loading images at the same time. So I researched and found some solutions.

# This method hides the already showing 'loading' image only.
# Its not a permanent fix
parent.$.fancybox.hideLoading();

however,

// Hide the 'Loading' gif image of fancybox when fancy-box dialog appears
// Not recommended approach but it fixes the problem
#fancybox-loading div {
  display: none;
}

The later solution code could be pasted inside any .css file that is loaded at the last

One thought on “jQuery : Fancy Box : hide the spinning ‘Loading Image’ explicitly

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s