Forever "Loading…" a.k.a latest jQuery incompatibility — fix
-
After adding this awesome plugin to my fresh WordPress install, I noticed that it wouldn’t load the chat and instead displayed a never-ending “Loading…” message.
After a brief investigation I discovered that Quick Chat (sadly ironically, as the author specifically advises against it in FAQ) relies on jQuery functions which were removed in version 1.9 of the library. As such, the plugin wouldn’t work if your WordPress were to use the latest jQuery version available (1.10 at the moment).
To replace the the deprecated code with working alternatives…
In quick-chat-load.js and quick-chat-load.dev.js:
Find the line
if (jQuery.browser.webkit) {
and replace it with
if ( navigator.userAgent.match(/webkit/i) ) {
In quick-chat-core.js. and quick-chat-core.dev.js:
Find all the occurrences (there are several) of:
.live(
and replace them with:
.on(
Or you could just get the files with fixes from here: https://ge.tt/1ZqZaPl/v/0
- The topic ‘Forever "Loading…" a.k.a latest jQuery incompatibility — fix’ is closed to new replies.