Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page. This works fine and fast but when i put in the conditional formatting the loading process of the site tooks a very long time, around 30-80 seconds. The aim is to view these elements (there are three: red, yellow and green) like a kind of a traffic light.

Code in SharePoint Workspace

Any tips for improving the performance?

share|improve this question
1  
usually I prefer use JavaScript instead of XSLT for many reason: is faster and you use the client process to formatting the result –  Salvatore Di Fazio Apr 17 '13 at 10:11
    
I never used JavaScript before but I'll give it a try ;) –  mbauer Apr 17 '13 at 11:12
    
ok seems it works a little bit but now i have the following problem: stackoverflow.com/questions/16086047/… –  mbauer Apr 19 '13 at 6:01
1  
Ok I'm going to ask you here and in the other question too... it's an hard work :) Please remember to vote :) –  Salvatore Di Fazio Apr 19 '13 at 8:17
add comment

1 Answer

up vote 1 down vote accepted

As I wrote in the comment above I prefer to use JavaScript for a couple of reason:

  • the workload is distributed on the clients instead of the server and that should give you better performance
  • it is more easy to integrate on your HTML
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.