No More IE6 Background Flicker

Finally, we can fix this legacy bug for IE via JavaScript

According to MSDN, a fix for fixing "Available memory decreases when you view a Web page in Internet Explorer 6 Service Pack " on November 1, 2005 was unexpected documented as the fix for fixing the problem of "Background Flicker" issue for IE6.

Introduced by Dan POPA, Cristi Balan, and AJAXIAN, this well-known bug finally has an elegant solution.

Based on Dean Edward's study , It's an IE6 only issue, so we only need to fix it for IE6.

Unfortunately, the only documentation on MSDM is misspelled (again!!).

  1. MSDN » Document.ExecCommand('BackgroundImageCache', false, true);
  2. Should be » document.execCommand('BackgroundImageCache', false, true);
And you should also note that 'BackgroundImageCache' is not case sensitive. So document.execCommand('BACKGROUNDIMAGECACHE', false, true); works, too.

Besides, I do agree with Simon Willison with his concerning about the Object Dom Detection Method.

For example, Firefox support 'document.execCommand'.

On the other hand, I still prefer to use those rarely-known and almost useless IE-proprietary methods or attributes to detect IE instead of using navigator.userAgent.

Therefore here is my suggested JavaScript fix:

<script> (function(){ /*Use Object Detection to detect IE6*/ var m = document.uniqueID /*IE*/ && document.compatMode /*>=IE6*/ && !window.XMLHttpRequest /*<=IE6*/ && document.execCommand ; try{ if(!!m){ m("BackgroundImageCache", false, true) /* = IE6 only */ } }catch(oh){}; })(); </script>

I highly recommand that all developers should enable this fix ( not my codes ) to improve not only the performance of IE but also the design of CSS

Thanks

Hedger Wang

Available Commands for document.execCommand (varified by queryCommandSupported Method)

	
	DELETE
	FONTNAME
	FONTSIZE
	SIZETOCONTROL
	SIZETOCONTROLHEIGHT
	SIZETOCONTROLWIDTH
	JUSTIFYFULL
	BACKCOLOR
	BOLD
	FORECOLOR
	ITALIC
	JUSTIFYCENTER
	JUSTIFYLEFT
	JUSTIFYRIGHT
	UNDERLINE
	STRIKETHROUGH
	JUSTIFYNONE
	TRISTATEBOLD
	TRISTATEITALIC
	TRISTATEUNDERLINE
	UNLINK
	BROWSEMODE
	EDITMODE
	UNBOOKMARK
	INDENT
	OUTDENT
	REMOVEFORMAT
	SUBSCRIPT
	SUPERSCRIPT
	REMOVEPARAFORMAT
	CREATELINK
	REFRESH
	OVERWRITE
	AUTODETECT
	DIRLTR
	DIRRTL
	BLOCKDIRLTR
	BLOCKDIRRTL
	INLINEDIRLTR
	INLINEDIRRTL
	MULTIPLESELECTION
	LIVERESIZE
	KEEPSELECTION
	UNLOADDOCUMENT
	BACKGROUNDIMAGECACHE
	OPEN
	SAVEAS
	PRINT
	REDO
	UNDO
	SELECTALL
	STOP
	COPY
	CUT
	PASTE
	
	

In recent years the number of web pages has increased greatly due to better site hosting facilities, due to which people find it hard to get the information. For this reason search marketing is gaining popularity. Companies acquire software that helps them to get marketing statistics and avail the best hosting services for their online presence. Communication has become cheap and now people can have online phone. People can contact companies through pc phone. In this entire scenario more reliable database servers are required for operations and people with 70-431 certifications in servers can be vital for any organization.