WebPagetest Forums
Conditional comments block downloads - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: Conditional comments block downloads (/showthread.php?tid=474)



Conditional comments block downloads - Geebee - 01-04-2011 03:57 AM

Hi all,

As you may know the use of conditional comments, to load extra CSS files, blocks downloads of other elements in IE. For IE8 and IE9 we can fix that. But for IE6 and IE7 I have not found a solution, apart from not using the conditional comments :-).

Anyone here have a solution? Thanks for any comment.


RE: Conditional comments block downloads - p83822 - 01-04-2011 07:43 PM

(01-04-2011 03:57 AM)Geebee Wrote:  Hi all,

As you may know the use of conditional comments, to load extra CSS files, blocks downloads of other elements in IE. For IE8 and IE9 we can fix that. But for IE6 and IE7 I have not found a solution, apart from not using the conditional comments :-).

Anyone here have a solution? Thanks for any comment.

Does this help?

http://www.phpied.com/conditional-comments-block-downloads/

Neil


RE: Conditional comments block downloads - Geebee - 01-04-2011 08:00 PM

That article helps for IE8 and IE9beta, not for IE6 and IE7... :-(


RE: Conditional comments block downloads - p83822 - 01-05-2011 04:45 AM

(01-04-2011 08:00 PM)Geebee Wrote:  That article helps for IE8 and IE9beta, not for IE6 and IE7... :-(

Hmmm, *seems* to work for me. Got a link? (Thought that this was at least one fix I *had* managed to put in. Lol.)


RE: Conditional comments block downloads - Geebee - 01-05-2011 06:31 AM

This one?
http://www.webpagetest.org/result/110104_ER_bf8ea984d7985f14d991389f0deef6c8/1/details/

IE7: empty cond. comment RIGHT AFTER Doctype, scripts BEFORE css in the head and DEFERRED, but the css still blocks... :-(

You have a good working-example link?

Thanks!


RE: Conditional comments block downloads - p83822 - 01-05-2011 07:27 AM

Hmmm, that really shows what a new guy I am in all this: as far as I can see, stoel_opa.jpg starts coming down before screen-1.1.css has completed.

What am I missing?

N


RE: Conditional comments block downloads - Geebee - 01-05-2011 07:37 AM

No! I have it wrong! I took so many hours staring at those lines that I saw it wrong. There is no blocking, you are right. I was confused by the max of 2 parallel downloads of IE7. Thank you, my problem is gone :-)). It does work for all IE-versions, I am happy!

Greetz and thans again!


RE: Conditional comments block downloads - p83822 - 01-05-2011 07:43 AM

"took so many hours staring at those lines"

well that bit we *do* have in common. :-D

N