看到SF头部的JS引入和猪八戒网的CSS引入都是用这种方法引进HTML里,很好得减少了请求次数,请教下各位大大,是如何实现的?效果:<script src="http://sfault.com/??js/feature/markitup.js,js/feature/simple_modal.js,js/feature/upload_modal.js,js/feature/textarea_resizer.js,js/feature/sfmark.js,js/feature/editable.js,js/feature/autoresize.js,js/feature/tooltip.js,js/feature/prettify.js,js/feature/clipboard.js,js/feature/tokeninput.js,js/feature/ga.js,js/feature/tag_popup.js?12.7.26.1"></script><link rel="stylesheet" type="text/css" href="http://t4.zbjimg.com/min/?b=v&f=g.css,base.css,head.css,nav.css,ui-form.css,zbj-index.css,footer.css&v=1.12">
2 回答
犯罪嫌疑人X
TA贡献2080条经验 获得超4个赞
我们使用了淘宝开发的nginx_concat_module,这个nginx模块可以很方便的合并静态文件请求,具体信息你可以参考
http://code.taobao.org/p/nginx_concat...
添加回答
举报
0/150
提交
取消