Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

background images

  • 11-11-2012 02:03PM
    #1
    Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭


    Want to use a image as a background on a site, its going to be a large image because it has to take up a fair bit of space, how can I get it to load faster or even pre load before the page opens?


Comments

  • Registered Users, Registered Users 2 Posts: 2,873 ✭✭✭Lantus


    Want to use a image as a background on a site, its going to be a large image because it has to take up a fair bit of space, how can I get it to load faster or even pre load before the page opens?

    use something like photoshop to compress it and reduce its quality as far as you can.


  • Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭off.the.walls


    that not reduce the quality n make it ****e though?


  • Registered Users, Registered Users 2 Posts: 522 ✭✭✭omega42


    whats the image? could it be a vector image? these can be scaled to any size without an increase in kb size.

    Can the image be scaled? ie keep it say 400px X 400px then scale it with css to fit the screen size.

    can you repeat the image?

    Dont preload the image, if people have to wait for a full size image to load before seeing the rest of page you could loose the attention of the visitor.

    if you do have to load a large image its better to load the page and use a background colour to make the text stand out until your image loads


  • Registered Users, Registered Users 2 Posts: 2,559 ✭✭✭KonFusion


    how can I get it to load faster or even pre load before the page opens?

    Javascript.

    Check out here and here.

    Or even here.

    There are many ways. Just google 'pre-loading images'.


  • Registered Users, Registered Users 2 Posts: 1,298 ✭✭✭off.the.walls


    Brilliant cheers :)


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 10,240 ✭✭✭✭Fanny Cradock


    You still need to optimise your image.


Advertisement