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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:07:03+00:00 2026-05-16T15:07:03+00:00

I’ve been away from web design/development for a long, long now and have recently

  • 0

I’ve been away from web design/development for a long, long now and have recently begun to get back into it. I started off doing things just to make them work, and now that I’m getting back into it, I would like to understand things a bit more clearly – including when the DOM is requested by the browser to when it is fully loaded, and the difference between script placement at the top and bottom of a page.

I realise that this is more a post for http://doctype.com, but I figured I would get a more technical answer from here. I would also like to have made this a community wiki, but I don’t have enough points…as yet.

Please feel free to correct me here – My questions/assumptions:

  1. When the browser makes a request for the page, the server responds with a Document Object that contains the hierarchy/order of scripts, css and html – correct?
  2. Once received, the browser then builds a Document Object Tree – is this when the DOM is ready or when it starts rendering elements on the page in a browser?
  3. In that regard, what is the difference between “when the DOM is loaded” and “when the DOM is ready”?
  4. Is there any difference between placing (java)script at the top (in the head tag) or at the bottom (before </body> tag)?
  5. Is there an DOM event that fires when all assets (css, images, javascripts, etc) are fully loaded by the browser? I ask this as sometimes I might have a background image still being loaded by the browser, and well before it can complete, my Javascript animations already start executing.

Thank you for taking the time to read this, and i look forward to your responses!

  • 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-05-16T15:07:04+00:00Added an answer on May 16, 2026 at 3:07 pm
    1. Browsers make conditional and unconditional requests to the server. (The Server Responds to Inquiry and the Client Renders responses…there is a limited throughput of information to and from the user (Privacy Settings & Etc.)

    Unconditional Requests:

    An unconditional request is made when
    the client browser does not have a
    cached copy of the resource available
    locally. In this case, the server is
    expected to return the resource with a
    HTTP/200 OK response. If the
    response’s headers permit it, the
    client may cache this response in
    order to reuse it later.
    If the browser later needs a resource
    which is in the local cache, that
    resource’s headers are checked to
    determine if the cached copy is still
    fresh. If the cached copy is fresh,
    then no network request is made and
    the client simply reuses the resource
    from the cache.

    Conditional Requests:

    If the browser later needs a resource
    which is in the cache, but that
    response is expired (older than its
    max-age or past the Expires date),
    then the client will make a
    conditional request to the server to
    determine whether the previously
    cached response is still valid and
    should be reused. The conditional
    request contains an If-Modified-Since
    and/or If-None-Match header that
    indicates to the server what version
    of the content the browser already has
    in its cache. The server can indicate
    that the client’s copy is still fresh
    by returning HTTP/304 Not Modified
    headers with no body, or it can
    indicate that the client’s copy is
    stale by returning a HTTP/200 OK
    response with the new version of the
    resource.

    1. The Document Object Model – is a model of information as it pertains to a browsers request/response. In many ways ECMA/Javascript was born as a direct relation accessing page elements and became the default DOM Library solution for many of the browser objects (document.frm etc). However, implementation and support is non-unified and sparse across all browsers.

    2. Essentially, the DOM Being loaded is just a definition to say that the page is being rendered and the content has/is being invoked. This is something that cannot be counted on in regards to accessing DOM Object so, it is unfavorable method of interaction. Generally, you should use the ready status which means that the DOM is in a ready and waiting state of request.

    3. Yep loads of difference – execution order of the client side code means where it will be loaded. Load with the entire page object or load after all content.

    4. Yes and No. 🙂 No Real Guarantee but, with javascript/jquery used you can use the onload event of the body to identify all elements of the page successfully loaded. This is a trick question btw. No real answer to my knowledge unless, I am mistaken to what you asked…

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

Sidebar

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.