Reputation: 14664
About 5 times over the past 6 months, in complex javascripts, I'll get an error in firefox only (IE6, 7, 8, Chrome, Safari, Opera are all fine) whereby nothing in my javascript happens.
There will be no messages in the error console, and according to Firebug, all my scripts are totally blank. Force reloading and clearing the cache does not help. I usually just revert to a previous revision when this happens and start my last edits again.
Has anyone else noticed this happening? Is there a specific cause? Or is there some firefox bug responsible?
EDIT: The latest firefox killing change
From
var coord_array = jsc.core.coordsFromId($(e.target).attr("id"));
$("#co-ords").html("X:" + coord_array[0] + " Y:" + coord_array[1]);
jsc.data.last_mouse_over = { x: coord_array[0], y: coord_array[1]};
To
var coord_array = jsc.core.coordsFromId($(e.target).attr("id"));
$("#co-ords").html("X:" + coord_array[0] + " Y:" + coord_array[1]);
var cellX = parseInt(coord_array[0], 10);
var cellY = parseInt(coord_array[1], 10);
jsc.data.last_mouse_over = { x: cellX, y: cellY};
As you can see, there's nothing too major changing here. This code works fine on its own, without the rest of my javascript (other than the functions/data it uses), and it works fine in every other browser I have tested aswell.
Upvotes: 1
Views: 298
Reputation: 51150
Do you have your Console enabled in firebug? I ran into this sort of problem last night where nothing happened until I enabled the Console. Very strange indeed.
This was when I was using one of the Logging functions in my JQuery code.
Edit:
Also, I have been experiencing a lot of firefox crashes lately. It seems the latest build is prone to crashing for me. This is on any site, not just my own.
Upvotes: 3
Reputation: 9859
this is not enough info to determine an exact cause jQuerys $(document).ready() works just fine. If your not getting an actual verbose error its probably an error within one of your objects. I would go through my logic with a fine tooth comb, and look for anything that may cause an error X% of the time.
also you should be testing on a clean install of firefox (as well as any other browser) firefox extensions are granted access to the DOM which may screw with your site.
Upvotes: 1