Board Thread:Support Requests - Getting Technical/@comment-24531999-20151103021409/@comment-1757994-20151107014600

I think what we're seeing the a race condition between importArticles on calc.js and document.ready.

In my browser, importArticles wins the race, so document.ready sees the table defined and sets up the handler.

In your browser, document.ready wins, sees no table, and exits.

So here's one more thing to try. If this doesn't work, I'm out of ideas.  if ($(".page-User_King_Dragonhoff_CalcTesting #hqrushtin").length) { (function hqrushtin {        if ($("#jcFormhqrushtin").length) {            $("#hqrushtinhqrushtouttarget").change(function  { if (this.value === "Headquarters") { $("#jcFormhqrushtin th:contains('Shield Generators')").parent.show; $("#jcFormhqrushtin th:contains('Mark of First Generator'), .jcTable th:contains('Mark of Second Generator')").parent.show; $("#jcFormhqrushtin th:contains('Number of Generators'), .jcTable th:contains('Mark of Each Generator')").parent.hide; } else if (this.value === "Power Core") { $("#jcFormhqrushtin th:contains('Shield Generators')").parent.show; $("#jcFormhqrushtin th:contains('Mark of First Generator'), .jcTable th:contains('Mark of Second Generator')").parent.hide; $("#jcFormhqrushtin th:contains('Number of Generators'), .jcTable th:contains('Mark of Each Generator')").parent.show; } else { $("#jcFormhqrushtin th:contains('Shield Generators')").parent.hide; $("#jcFormhqrushtin th:contains('Mark of First Generator'), .jcTable th:contains('Mark of Second Generator')").parent.hide; $("#jcFormhqrushtin th:contains('Number of Generators'), .jcTable th:contains('Mark of Each Generator')").parent.hide; }       });        $("#hqrushtinhqrushtouttarget").change;    } else {        setTimeout(hqrushtin, 10);    }  }); } Basically if the code sees the div that wraps the table, but doesn't see a table yet, it schedules another try after the current thread is released, giving importArticles a chance to run and to set up the table. Making a wait loop with setTimeout is kind of kludgy, but it should work. I'll try to think of something more elegant later.