Damn! Under Firefox I didn't see the problem.
A quick solution that may be enough is to load the script asynchronously:
<script src="/scripts/js-table-filter.js" async></script>
(I updated the post.)
If necessary, wait until the DOM is fully loaded before triggering the filter. Something like :
function domReady (callback) { if (document.readyState !== "loading") callback(); else document.addEventListener("DOMContentLoaded", callback); }; domReady(TableFilter.init);
Instead of TableFilter.init();.
TableFilter.init();
Good catch! And sorry for the late response.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Damn! Under Firefox I didn't see the problem.
A quick solution that may be enough is to load the script asynchronously:
(I updated the post.)
If necessary, wait until the DOM is fully loaded before triggering the filter. Something like :
Instead of
TableFilter.init();
.Good catch! And sorry for the late response.