Firefox doesn't fire $(document).ready(function() {

前端 未结 5 1601
粉色の甜心
粉色の甜心 2021-01-13 07:45

I have a page that uses the jquery function:

$(document).ready(function() {

and I have put an alert in there, and tried everything. It does

5条回答
  •  [愿得一人]
    2021-01-13 08:19

    I had a similar problem and in my case, invoking an old jQuery Address .js file was the problem. For some reason, Edge, Chrome, and Opera were able to ignore maybe that old version of jQuery Address while keeping jQuery/JavaScript to work normally. But Mozilla Firefox did not behave in the same way, and jQuery/JavaScript was not working at all in Mozilla Firefox. In my case the solution was simply to comment out jQuery Address for now and I will need to upgrade it later on. I was surprised that Mozilla Firefox was rigid about it and all other browsers were flexible to allow the jQuery/JavaScript code to continue to work.

提交回复
热议问题