1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Tips to Improve Site Speed

Discussion in 'Programming' started by Eric007, Mar 17, 2007.

  1. #1
    My site is kind of slow. Are there things I can do to improve the speed? I use SharePoint, maybe that's the problem, but I would appreciate any tips that might help.

    Thanks.
    SEMrush
     
    Eric007, Mar 17, 2007 IP
    SEMrush
  2. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Smaller images, make .gifs of them if they are not already that.

    Would be easier to say if I know your site.
     
    login, Mar 17, 2007 IP
  3. chandra.seo

    chandra.seo Peon

    Messages:
    102
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    some avoiding flash frame and image can achieve
     
    chandra.seo, Mar 17, 2007 IP
  4. stugs

    stugs Peon

    Messages:
    157
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try turning on HTTP compression. If you have large HTML pages it can give a good speed boost.
     
    stugs, Mar 17, 2007 IP
  5. teddarling

    teddarling Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Though .gifs are often times smaller in size for images that have only a few colors, be sure not to try to make a photo a .gif. You might also want to look at .pngs as support for the format has been around for years. They are often smaller in size than .gifs and allow for better compression even of photos.
     
    teddarling, Mar 18, 2007 IP
  6. Eric007

    Eric007 Peon

    Messages:
    411
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I heard of a technique where we program it so the site loads the content first, then the ads later. Anyone knows of this?

    Thanks.
     
    Eric007, Mar 18, 2007 IP
  7. teddarling

    teddarling Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I've never heard of this, But I'm sure that if you put ads into divs at the bottom of everything else and then used positioning on them, then your content would show first.

    Plus the use of divs over tables is another way to optimize your site. I should have mentioned that earlier.

    You might also try using page or partial page caching. This will speed up your site considerably (as long as the page is constantly updated).
     
    teddarling, Mar 18, 2007 IP
  8. Xangis

    Xangis Active Member

    Messages:
    182
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    78
    #8
    No idea whether this applies to you, but if you use MS Word as your HTML editor it'll slow down your site quite a bit since it adds a TON of useless and extraneous code.
     
    Xangis, Mar 18, 2007 IP
  9. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #9
    Use FLUSH to flush out the output before they actually put to user. It actually helps.
     
    toby, Mar 18, 2007 IP
  10. Adi

    Adi Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    1. Make sure to use HTTP caching - don't make the users download the same picture, JS, CSS, HTML or any other "static" file over and over again.

    2. You can upload large pictures to a free picture storage site - this will save you bandwidth.

    3. Make sure that the JS (or other client side code) is executed only after the HTML code has been download and displayed to the user - this will make the site more user friendly.

    4. Use caching as much as you can - cache the DB query results or any other dynamic content which is changed every X min.

    5. Use SSL only for the web pages which contains sensitive information

    6. Use HTML compression to reduce page size but balance it to match the server processing power since the compression might be CPU consuming operation.

    7. Remove any code which might affect the site's performance. for example the string concatenation (str = str & "aaa") in a loop will
    make your web page very very slow.

    8. Remove any unneeded code - if a portion of the page will not be displayed then make sure not to render it.

    9. Reduce the access to the session and application objects as much as you can - the page will be rendered much faster if you don't call
    the GetSession("X") in a loop. (cache it like point 4)

    10. Use AJAX - This will reduce the load from the server (the page will not have to create and send each time) and make your site more user friendly.


    Hope those tips will help ;)
     
    Adi, Mar 19, 2007 IP
  11. Eric007

    Eric007 Peon

    Messages:
    411
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thanks for your detailed input!
     
    Eric007, Mar 20, 2007 IP
  12. stugs

    stugs Peon

    Messages:
    157
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I agree with all of Adi's suggestions except #10. That is, use well written AJAX. I keep finding free AJAX snipits that could potentially put a huge additional load on the server. While it may display fewer pages, some poorly coded AJAX scripts generate 10x the DB queries per page
     
    stugs, Mar 21, 2007 IP
  13. Adi

    Adi Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I agree that AJAX by itself will not solve the problem and might introduce some new performance issues.

    That implies to each point I wrote, for example I saw once a caching solution which reduced the site's performance since it took less time to get the data from the DB ...
     
    Adi, Mar 22, 2007 IP