Generate Javascript file with PHP

萝らか妹 提交于 2019-11-30 20:23:05

Faster as .js yes, but marginally. The reason being that it would be a static file so wouldn't need the processing time PHP will take.

That said there's nothing wrong with feeding JavaScript through PHP like this. You could even come up with caching methods as well to reduce the processing impact.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!