As I’ve got errors in IE7 – I should to take a closer look at JS file – written before …(by others).
at this point I’m not sure about anything, so I’d like to ask you – from my point of view is this wrong (aslo spacing can cause problems, I think) – but it is done all over the site:
(function ($) {
$(document).ready( function() {
//the code
});
})(jQuery);
oh and yes, the error in IE8:
HTML Parsing Error: Unable to modify the parent container element
before the child element is closed (KB927917) – which make me think
the JS is in error.
I know that this is a silly question, but thanks for your answer.
I’ve always seen it like this. This will wait until the document is loaded before running any scripts.
If you need to use another library that would cause collisions with the $ that jQuery uses, use this
Have a look at the $.noConflict() documentation here.