Magento: cleaning my themes, removing blank.html

I'm going to sort and optimize a Magento 1.5.1.0 theme, and I ask myself, for what purpose is this piece of code and can it be safely deleted.

Speaking of this:

<!--[if lt IE 7]> <script type="text/javascript"> //<![CDATA[ var BLANK_URL = '<?php echo $this->helper('core/js')->getJsUrl('blank.html') ?>'; var BLANK_IMG = '<?php echo $this->helper('core/js')->getJsUrl('spacer.gif') ?>'; //]]> </script> <![endif]--> 

Any advice is appreciated. Thanks!

+4
source share
1 answer

BLANK_URL is part of the IE6 fix so that the browser displays the iframe background transparently when it freezes.

BLANK_IMG is part of another IE6 fix so that the browser displays PNG images correctly when used as background images.

Whether you can remove them depends only on which browsers you want to support.

If you want to delete them, keep in mind that you must also delete the corresponding .js, including iehover-fix.js for BLANK_URL and / or ds-sleight.js for BLANK_IMG .

 <!--[if lt IE 7]> <script type="text/javascript" src="http://example.com/js/lib/ds-sleight.js"></script> <script type="text/javascript" src="http://example.com/js/varien/iehover-fix.js"></script> <![endif]--> 
+8
source

Source: https://habr.com/ru/post/1384886/


All Articles