Skip to content

Commit c930930

Browse files
committed
Remove count.js for good performance.
1 parent dd04fdc commit c930930

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

static/js/count.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
$(document).ready(function () {
22
pre_content = $("#jalpc_site_pv").html();
33
$("#jalpc_site_pv").html(pre_content);
4-
$.ajax({
5-
type: "get",
6-
async: false,
7-
url: "https://miniapp.jack003.com/counter.cgi",
8-
dataType: "jsonp",
9-
jsonp: "callback",
10-
jsonpCallback: "flightHandler",
11-
success: function (json) {
12-
var website_count = json.data;
13-
$("#jalpc_site_pv").html('<span class="navy">' + website_count + '</span>&nbsp;<span data-i18n="link.view">views</span>&nbsp;||&nbsp;' + pre_content);
14-
},
15-
error: function () {
16-
console.log('fail');
17-
}
18-
});
4+
// $.ajax({
5+
// type: "get",
6+
// async: false,
7+
// url: "https://miniapp.jack003.com/counter.cgi",
8+
// dataType: "jsonp",
9+
// jsonp: "callback",
10+
// jsonpCallback: "flightHandler",
11+
// success: function (json) {
12+
// var website_count = json.data;
13+
// $("#jalpc_site_pv").html('<span class="navy">' + website_count + '</span>&nbsp;<span data-i18n="link.view">views</span>&nbsp;||&nbsp;' + pre_content);
14+
// },
15+
// error: function () {
16+
// console.log('fail');
17+
// }
18+
// });
1919
});

0 commit comments

Comments
 (0)