Added fake AJAX to the blog, and finally removed it
text
Comment
Comment area
0F Ha ha, I also use fake PJAX, and still request a full page. There was a time when the server only returned the corresponding part after detection by marking in the header, but it was troublesome to write this way. It seems that Typecho does not have a native JSON API. It is said that Ghost has. It should be good to write a complete single page website. It's the same as a fake PJAX victim, but Hexo doesn't have a back end and seems unable to detect whether a full page is returned... Maybe you can generate an additional article, json, and then load the rendered article, but you need to rewrite your own pjax... I'll wait to change vuepass 🙂
0F Try the front-end SPA (vue, angular, react, etc.), and then use wp rest to realize data interaction. It should be pure JSON. As for Google Adsense, I remember that there are plug-ins. For example, if vue is used, you can use vue google adsense and other solutions ( ̄ ▽ ̄;) 0F Indeed Even the theme I modified is the same. I found that the AJAX of this blogger's theme was written by himself, which really saves traffic. https://blog.qwq.moe/