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.

Why is my gallery page loading so slow?

  • 23-04-2009 02:12PM
    #1
    Closed Accounts Posts: 812 ✭✭✭


    Hey guys,

    Can anyone help my figure out why the main section of this gallery page loads so slowly? It seems to wait for a second or two. It does load a javascript file but it's <40kb .

    The rest of the website doesn't have this delay before loading.

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 106 ✭✭Moonstar


    At a guess, the thumbnails in the gallery are being dynamically generated from larger photos each time the page loads.

    This is an intensive task to do every time the page is viewed, you should see if you can make the thumbnails into static images using whatever script you have, or use another script that does this for you.


  • Closed Accounts Posts: 812 ✭✭✭gary82


    Nope the thumbnails are static, not dynamically generated. It's a very basic gallery script, I upload the thumbnails when I upload my images. (.... old-school :cool:)


  • Registered Users, Registered Users 2 Posts: 106 ✭✭Moonstar


    Oh ok :pac:

    You could do a bit of PHP hackery and print the gettimeofday() at the start and end of the script to verify if the script is the culprit I guess...


Advertisement