I noticed Magento 1.9.0.1 rwd theme now include jQuery library and use "jQuery.noConflict();" associated on "$j" token on default.
First, I'ld like to use google CDN jQuery library instead of local jQuery library.
As second, how can run my jQuery code?
For example, I tried to insert in minicart.phtml:
.....
$_cartQty = 0;
}
?>
<script type="text/javascript">
$j(document).ready(function() {
$('#header-cart').hide();
});
</script>
<a href="#header-cart" class="skip-link skip-cart <?php if($_cartQty <= 0): ?> no-count<?php endif; ?>">
<span class="icon"></span>
........
Also, I tried to use add my code at the end of app.js:
.....
};
$j(document).ready(function() {
ProductMediaManager.init();
});
$j(document).ready(function() {
$('#header-cart').hide();
});
but no effect. Where I wrong? How can I run my code in a separate file in app/js folder?