Comments-ajax.js after the CDN cache, many people encounter problems that cannot be answered (using AJAX). In this respect, my previous practice is only to prohibit the CDN to cache this file, then do not think of him.
The original solution is to be followed in the comments-ajax.js:
var i = 0, got =-1, len = document.getelementsbytagname (' script '). Length;
while (i <= len && got = = 1) {
var js_url = document.getelementsbytagname (' script ') [I].src,
got = Js_u Rl.indexof (' comments-ajax.js '); i++;
}
Add to:
Js_url = Js_url.replace (' CDN address ', ' your domain name ');
This will solve the problem.
Here's an example:
Js_url = Js_url.replace (' jb51.b0.upaiyun.com ', ' jb51.net ');
To this end, I made a little convenience to change, to add after "}":
var dm = Js_url.match (/http:\/\/([^\/]+) \//i);
Js_url = Js_url.replace (dm[1], ' Your domain name ');
This is OK, save a step to view and fill out the CDN domain name, just fill in its own domain name. It's not an example.
Of course, don't forget to refresh the cache at last. Update the Comments-ajax.js file of the CDN
WordPress After upgrading to 3.6, jquery uses the 1.10.2 version, and uses the jquery migrate to be compatible with the legacy jquery code. That is to ask for more than once.
This jquery migrate can be used to detect and recover APIs that have been deleted or obsolete in the jQuery1.9 version, but with a few more calls. This is not to remind us. Want to use the new jquery function function as soon as possible?!