Wesley Bakker

Interesting things I encounter doing my job...

Sponsors

News

Wesley Bakker
motion10
Rivium Quadrant 151
2909 LC Capelle aan den IJssel
Region of Rotterdam
The Netherlands
Phone: +31 10 2351035

(feel free to chat with me)

Add to Technorati Favorites

Eliminate page flicker in SharePoint

Happy with SharePoint

Sometimes I'm really happy with SharePoint and sometimes I'm not(read previous post). Today I'm happy again. In creating a connected webpart(read previous post) I noticed a very long and irritating page flicker. Normaly I don't really bother and to all those implementing a complete ajax solution just because of a little page flicker: Get a life! So how to solve this page flicker in SharePoint without adding an updatepanel?

IE only

To solve a problem we first need to set it's boundries. And in this case it is bounded to IE. Other browsers resolve the page flicker themselves. So we nee a solution for IE only. Hmm.. wait a second. I solved this issue many times before, without a single line of javascript. The page flicker has always annoyed me on websites that have a dark background color, such as Diveplace. I solved it by simply adding a page transition metatag into the header of my masterpage. This metatag looks like this: <meta http-equiv="Page-Exit" content="blendTrans(Duration=0.0)" />

Additional Page Head

The reason that I'm happy again is that I could create a new SharePoint feature really within minutes and the page flicker is resolved. All you need to do is create a usercontrol that contains this metatag and create a SharePoint feature that adds this UserControl to our AdditionalPageHead delegate control. Just like I showed you before.

So I solved one of the biggest SharePoint issues!!(if i may believe all the folks that implement AJAX on websites because of page flicker only)

Cheers and have fun,

Wes

Comments

stefan.sedich said:

Yeah simple little fix which is soo damned handy, have blogged about this before after I stumbled across it and for something soo easy it is very very effective :).

Cheers

Stefan

# December 29, 2008 7:04 AM

Links (1/4/2009) « Steve Pietrek - Everything SharePoint said:

Pingback from  Links (1/4/2009) &laquo; Steve Pietrek - Everything SharePoint

# January 4, 2009 5:47 PM

Mirrored Blogs said:

Recien estoy terminando de leer la abundante informacion que tenia al respecto de SharePoint y que se

# January 7, 2009 3:43 PM

Chintan said:

I tried the above, but it didn't work for me, when i used to hide/show div using jquery, but adding this did work..

Add the doctype element to the master page. You can also use different type of doctype, if you had the need.

<!DOCTYPE html>

# September 1, 2009 12:22 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)