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 7886539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:20:37+00:00 2026-06-03T05:20:37+00:00

I am using the fullscreenr jQuery plugin on my page. First, I hide the

  • 0

I am using the fullscreenr jQuery plugin on my page. First, I hide the image, then I run fullscreenr on it using the waitforimage plugin, and then finally I use fadeIn to display it:

<img id="bgimg" style="display: none;" src="<?php bloginfo('template_url')?>/images/backgrounds/<?php echo $imageData['location']; ?>" />

<script type="text/javascript">
    $bg = $('#bgimg');
    $bg.hide();
    var FullscreenrOptions = {  width: <?php echo $imageData['width']; ?>, height: <?php echo $imageData['height']; ?>, bgID: '#bgimg' };
    $bg.waitForImages(jQuery.fn.fullscreenr(FullscreenrOptions));
    $bg.fadeIn(2500);
</script>

My problem is that somehow, something isn’t working quite right. This works fine on my dev box, but when I try to load the page on the web, the fadeIn starts before the image is fully loaded.

I tried adding a callback to the fullscreenr function, but it had the same results. What can I do to ensure that it works properly? I also tried using $bg.load() to load fullscreenr and again, no luck.

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-03T05:20:39+00:00Added an answer on June 3, 2026 at 5:20 am

    When you have nested function calls like function2(function1(whatever)) the inner function will be executed first and then the outer function. So in your case the fullscreenr() call will be applied BEFORE waitForImages … and that would explain the behavior.

    On second glimpse I guess that this is what you wanted to do

    $bg.waitForImages(function() {jQuery.fn.fullscreenr(FullscreenrOptions)});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using jQuery fullscreen plugin https://github.com/martinaglv/jQuery-FullScreen My code: $('#cancel-fullscreen').hide() //View Fullscreen $('#view-fullscreen').click(function(){ $('#container').css({'background': 'green'}).fullScreen();
So I'm using the Supersized plugin (http://buildinternet.com/2011/07/supersized-3-2-fullscreen-jquery-slideshow/) to display beautiful background images behind the
I am using the Galleria jQuery slideshow plugin. I can get the slideshow to
When i first load the page the flash container div is set to display:none,
I am using the Supersized jQuery plugin which makes images fullscreen and also implements
I am trying to achive a fullscreen background image inside a div using JQuery.
Using Flex 3, I would like to take an image snapshot such as this:
I am using vlc to capture a video and audio stream and display it
I am using the following code to display splash screen, but it is showing
I have a site built using jQuery and jQueryUI. All dialogs are using the

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.