Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Does contents of a div load when hidden ?

  • 10-04-2008 07:31AM
    #1
    Registered Users, Registered Users 2 Posts: 872 ✭✭✭


    Hi,

    Maybe this is a stupid question...

    Say i have 1 div with 20 images in it but it set the style properties of it to be hidden and display:none.

    Do the images in the div only load when i make the div visible or do they load at runtime like everything else ?

    Thanks alot


Comments

  • Registered Users, Registered Users 2 Posts: 597 ✭✭✭yeraulone


    Hello,

    Even though you can't see the div, it will still be loaded by the browser along with the div content.


  • Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭forbairt


    grahamor wrote: »
    Hi,

    Maybe this is a stupid question...

    Say i have 1 div with 20 images in it but it set the style properties of it to be hidden and display:none.

    Do the images in the div only load when i make the div visible or do they load at runtime like everything else ?

    Thanks alot

    As was said they'll all load ... what you might want to do is play with ajax for loading your images.


Advertisement
Advertisement