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

  • SEARCH
  • Home
  • 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 7736387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:43:08+00:00 2026-06-01T07:43:08+00:00

So I have this page that has some basic custom tabs: http://demo.unlockedmanagement.com/users/view/2 * NOTE

  • 0

So I have this page that has some basic custom tabs:

http://demo.unlockedmanagement.com/users/view/2

*NOTE it will ask for a login, just use admin/password and then go to that url.

Loading this page normally (except for the first time) and everything looks fine. If I do a hard refresh of this page, the tabs/tabbed content appears as if the javascript has not yet been applied and the javascript only seem to be applied after the images are loaded. The thing is that my javascript to apply the tabs looks like this (you can look at /javascript/base.js to see the whole thing):

$(document).ready(function ()
{
    //some code ...

    //tabbed data
    if($('.tabbed-data').length > 0)
    {
        $('.tabbed-data').tabs();
    }

    //some more code ...
});

I thought that using $(document).ready() will not wait for all the images to load so why am I seeing the delay in the javascript we doing a hard refresh?

  • 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-01T07:43:09+00:00Added an answer on June 1, 2026 at 7:43 am

    The script you are using is correct, $(document).ready() only waits until the DOM has loaded. It does not wait for the images to load. Therefore the problem is most likely to do with where you are loading the scripts.

    In your code, you have placed the <script> tags at the base of the code. Why is that? This is most likely the issue as the browser will work its way down the page loading the assets in the order they appear.

    Place you <script> tags in the <head> part of the page to load them before the images.

    The best way to test if this is the issue, is simply placing this in your header and see if it fires before the images load:

    <script>
    $(document).ready(function ()
    {
        //some code ...
    
        //tabbed data
        if($('.tabbed-data').length > 0)
        {
            $('.tabbed-data').tabs();
        }
    
        //some more code ...
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that has 3 variables. They look like this: String[] Headers
Please have a look at this demo page that I cooked up a while
I have a page that is accessed via a URL like this: http://power-coder.net/Test/something.php?id=3#Page1 I
I have this code that fetches some text from a page using BeautifulSoup soup=
I have an aspx page that uses a master page. On this page I
I have a page that is setup like this public partial class _Default :
On this page there is a list of footer links that have a little
I have this line below that shows a link to go the next page
I have a very basic ASP.NET web site. It has a single page (TestPage.aspx)
I have some basic tabs in HTML, with CSS to change the colour once

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.