0

I have a question, about wordpress if i can combine all js on the site in a single js and all css from the page in one css. It's there any way to do this?

1 Answer 1

1

I'm not sure if you can gell all scripts/styles, but you can use wp_dequeue_style and wp_dequeue_script to remove some of the scripts/styles from wordpress that are added properly.

Then you would have to manually take those files and add them into a master file. Combining everything can be tricky though, be sure to make note of the order everything was originally added in.

Alternativly, you could try the JS & CSS Script Optimizer plugin. Never used it myself.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for this plugin, it is allmost good, but i managed to modify for my good will. :P

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.