最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp enqueue script - How to do chunked JS files in WordPress?

programmeradmin1浏览0评论

Webpack outputs chunks of JS files in order to parallelize downloads over HTTP/2 but unfortunately WP's wp_enqueue_script requires that only one file be loaded to represent a script, forcing us to give up on the benefits of parallelization since we're only serving a file at a given time.

Is there any way to redirect WP to all the files within a directory or with a certain name?

发布评论

评论列表(0)

  1. 暂无评论