PHP include file optimization

Discussion in 'PHP' started by lv211, Jan 15, 2008.

  1. #1
    I'm building a mashup site. I'm using three include files and google maps to generate dynamic content.

    I'm happy with the way it looks however it takes a long time to load. I tried running a diagnostic report on it and it told me to decrease the images (I'm using the flickr api).

    Is there any way that I can optimize my code or do anything to increase load times on the page? I'll probably do some sort of caching later on down the line but I want see what I can do now.
     
    lv211, Jan 15, 2008 IP
  2. papa_face

    papa_face Notable Member

    Messages:
    2,237
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    285
    #2
    Without seeing the code we can't really say much tbh.
     
    papa_face, Jan 15, 2008 IP
  3. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Are you doing a lot of server-side processing before rendering the includes?

    Also, how fast is your host?
     
    frankcow, Jan 15, 2008 IP
  4. Dr. XYZ

    Dr. XYZ Guest

    Messages:
    226
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If your page is displaying Google's applet this might me the reason. Reduce its size for better performance.

    ·​
     
    Dr. XYZ, Jan 15, 2008 IP
    lv211 likes this.
  5. lv211

    lv211 Peon

    Messages:
    168
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    @Dr. XYZ - Your advice seemed to work the best. When I reduced the map size I got a better performance. It still takes a little bit of time to load up.

    Thanks for your help.
     
    lv211, Jan 16, 2008 IP