开发者 | Hube2 |
---|---|
更新时间 | 2017年12月1日 03:12 |
捐献地址: | 去捐款 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 4.9 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
include(dirname(__FILE__).'/blunt-ajax/blunt.ajax.php');
I'm a "use the right tool for the job" kind of a person. If I need to tighten a screw I use a screwdriver, I don't dig into my toolbox an pull out a widget that'll do 101 different jobs and can handle every type and size screw. The same goes for development. Chances are that I'm only going to use a tiny fraction of what some JavaScript framework will do. Chances are also quite good that I can do the job I need done faster and easier with a tool designed to do exactly what I need done. I also want to consider the weight of the tool. Just like I don't want to lug around an entire toolbox with me when I can slip a screwdriver into my pocket, I don't want a website to lug around the weight of that framework when it's not necessary and I ain't gonna use 95% of it. This plugin is for anyone that thinks the same way I do and does not automatically turn to some framework every time they need to do every little thing; someone that knows how to and prefers to write vanilla JavaScript.
You should use Blunt Ajax when you don't want to use a JavaScript framework. If you are already loading a JavaScript framework that includes AJAX functionality then you should use the AJAX functionality of that framework rather adding Blunt Ajax to the mix. The reason for using this script is to decrease the total size of the JavaScript you use, not to increase it.