locked
js file and image load times RRS feed

  • Question

  • Performance testing in our SharePoint 2010 environment is revealing that loading of images and javascript files is taking a lot of time.

    What are the possible options to optimize the load times for this issue.

    Thanks.


    -http://lrathi.blogspot.com
    Sunday, February 27, 2011 9:30 AM

Answers

  • If they are coming from a document library, move them into the _layouts directory for MUCH better performance. If this is an impossibility, turn on blob caching for the proper file extensions. 
    Sunday, February 27, 2011 11:32 PM

All replies

  • If they are coming from a document library, move them into the _layouts directory for MUCH better performance. If this is an impossibility, turn on blob caching for the proper file extensions. 
    Sunday, February 27, 2011 11:32 PM
  • Additionally you can look at additional caching via ISA/FIS. Also make sure caching is turned on both within IIS and the site collection.
    SharePoint 2010 Extensions - http://sp2010ext.codeplex.com/ My Blog - http://www.withinsharepoint.com Twitter - http://twitter.com/#!/withnsharepoint
    Monday, February 28, 2011 12:03 AM
  • Todd - We have all the images and js files loading from the _layouts path.
    -http://lrathi.blogspot.com
    Monday, February 28, 2011 3:04 AM
  • Well if small js and image files out of the layouts directory are your bottleneck...I actually can't believe this. This should be the fastest part of the SharePoint site, compared to aspx pages that need to query the db and apply security trimming and all that. What tools are you using to prove that these are so slow? Have you proven these files load faster than the aspx page? Maartens recommendation about the IIS caching is the next best option, but your caching the fastest part of your website at that point.
    Monday, February 28, 2011 4:59 AM