AndersDJohnson / htmlcompressor

Automatically exported from code.google.com/p/htmlcompressor
Apache License 2.0
1 stars 0 forks source link

compressing external links #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've noticed many sites uses 'http://' to start external links when '//' is 
shorter and seems to work fine cross-browser.

Original issue reported on code.google.com by erich.re...@gmail.com on 13 Apr 2011 at 5:48

GoogleCodeExporter commented 8 years ago
I tried to find some info about this and couldn't. I guess I can add it for 
those who know what they are doing. 

I am not sure though inside which tag properties it is safe to remove the 
protocol ("href", "src", anything else?)

Original comment by serg472@gmail.com on 13 Apr 2011 at 4:04

GoogleCodeExporter commented 8 years ago
href and src are the two big ones. The only other one I can think to consider 
would be url('http://...') inside css.

I just tested the css shortening and it worked in IE7, Chrome10 and Firefox3.6

Original comment by erich.re...@gmail.com on 14 Apr 2011 at 12:58

GoogleCodeExporter commented 8 years ago
Added in 1.3 release.

Thanks.

Original comment by serg472@gmail.com on 25 Apr 2011 at 2:53