How to do chunked JS files in WordPress?
Question
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
2 months
0 Answers
11 views
0
Leave an answer
You must login or register to add a new answer .