Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can minify localized js data? #632

Open
davetbo opened this issue May 11, 2018 · 0 comments
Open

Can minify localized js data? #632

davetbo opened this issue May 11, 2018 · 0 comments

Comments

@davetbo
Copy link

davetbo commented May 11, 2018

Hello,

I'm thinking about using minify with WordPress to automatically combine and minify js and css. I'm thinking that if I use a late hook on wp_enqueue_scripts (like 999999), dequeue all the scripts, and then requeue them concatenated with minify. However, I'm not sure how to append the localized data from the WordPress wp_scripts object into minify. Any advice on whether and how this might work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant