My contemplations and diurnal novelties are publicized here


We had a Zend application which seems damn slow in IE (all version). We were just cursing IE and thought it all related to IE shit.

Somehow my teammate discovered that when calling a certain action in Zend. There are multiple calls going to hit the server.

Then she discovered a flaw in fancy box that was creating multiple calls to the server to serve PNG file but the path was somewhat similar to calling an action in Zend. This way several times controller initialization occurs.

Suggested Solution:-

Changing src to url in fancybox.css worked

Following is the malicious code inside jquery.fancybox-1.3.4.css

.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_close.png’, sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_nav_left.png’, sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_nav_right.png’, sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_title_over.png’, sizingMethod=’scale’); zoom: 1; }

.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_title_left.png’, sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_title_main.png’, sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_title_right.png’, sizingMethod=’scale’); }

AND

.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_n.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_ne.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_e.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_se.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_s.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_sw.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_w.png’, sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’fancybox/fancy_shadow_nw.png’, sizingMethod=’scale’); }

Solution

.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_close.png), sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_nav_left.png), sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_nav_right.png), sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_title_over.png), sizingMethod=’scale’); zoom: 1; }

.fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_title_left.png), sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_title_main.png), sizingMethod=’scale’); }

.fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_title_right.png), sizingMethod=’scale’); }

AND

.fancybox-ie .fancybox-bg { background: transparent !important; }

.fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_n.png) , sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_ne.png), sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_e.png), sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_se.png), sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_s.png), sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_sw.png), sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_w.png), sizingMethod=’scale’); }

.fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(url(../fancybox/fancy_shadow_nw.png), sizingMethod=’scale’); }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: