Use a tool like Gulp to minify using NodeJS packages. Gulp Uglify for JS, Gulp CSS Min for CSS.
As for GZip
, you’ll need to enable that on your server config – Apache using mod_deflate
in .htaccess
and In IIS
, you can set it up in “website properties” (Tab Services), and then allow “compress application files”. Finally check and see if you have it enabled using a service like Check GZip Compression.
The article My Advanced Gulp Workflow for WordPress Themes will probably help you get a better understanding of the process but keep in mind there are several ways to approach this based on your needs.
Grunt or Webpack are also alternative task runners. Go the app route with something like Koala, LiveReload or Crunch. Or minify JS online with something like Google Closure Compiler.
Related Posts:
- What is copy-on-write?
- What is the purpose of the “role” attribute in HTML?
- Most efficient way to increment a Map value in Java
- Image rotation algorithm
- Refactoring WordPress to improve memory performance [closed]
- Optimizing a Proximity-based Store Location Search on a Shared Web Host?
- Why is home (a lot) slower than other pages?
- Long Waiting Times on GoDaddy? [closed]
- What’s the case against transient-ing almost everything that’s mostly static?
- Is there a way to measure server resource (CPU) usage by WP plugins?
- wordpress with 1.5 million posts
- Any suggestions on how to make this function more efficient or more generally useful?
- better wordpress minify problem
- Is there a way to ensure local fonts load from CDN when CDN is enabled?
- Disable Garbage Collection? [closed]
- Does WP Super Cache really compress my pages? [closed]
- How to prevent Vimeo duplicate requests?
- Need to optimize wordpress websites on google pageinsight
- Number of queries in wordpress
- Combine several CSS files into one
- My website is slow on the initial load
- What are some ways to speed up a WordPress site that most people don’t know? [closed]
- What’s the best way to search for a UPC code in a Database?
- How to efficiently remove duplicates from an array without using Set
- Big O, how do you calculate/approximate it?
- Fastest way to put contents of Set
to a single String with words separated by a whitespace? - Steps to optimize WordPress in regard to server load and website speed?
- How to Optimize WP site for millions of posts
- How to cache json with wp-super cache
- What is a good alternative to using $content_width for image optimization?
- What’s a good strategy for planning WordPress DB growth?
- Make Google index the entire post if it is separated into several pages
- Separate Database Tables For Different Post Types
- Safe to disable wptexturize?
- Website is slow: advice on optimization
- Is checking whether the blog is installed necessary?
- Speeding Up Bulk Post Creation – wp_insert_post & update_post_meta
- How to properly insert a stylesheet in wp_head
- How to solve ‘Eliminate render-blocking JavaScript and CSS in above-the-fold’ content for multiple files?
- Settings to get the most out of W3 Total Cache
- Using Multiple Queries of “home_url” vs. Calling a Variable Multiple Times
- Disable unneeded scripts in a wordpress installation
- Could a higher number of registered image sizes affect performance?
- How do I edit the htaccess file to optimize my website?
- Continue execution after WP REST API response
- Should I remove transients from the wp_options table?
- Optimizing WordPress’s styles and scripts
- How can I easily reduce the size of WordPress installation from development to production?
- WP Optimization: Removing Orphaned wp_options (especially the autoload ones)
- Using uncss or similar with WordPress?
- How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?
- How can I use PurifyCSS to clean WordPress style.css?
- How to Appease the Google PageSpeed Gods with regards to image optimization?
- batch UPDATE autoload value in wp_options table
- Page taking time in loading. Also used lazy loading but doesn’t work?
- How to show optimized list of posts with all their attachment images
- What type of index should I use for postmeta?
- Will Gutenberg Have a Negative Impact on Page Speed?
- Query posts without meta preload
- admin-ajax.php + load-scripts.php hanging for minutes
- SuperCache for Custom Templates
- WordPress backend delay by server side HTTP Request
- What would Repair and Optimize WordPress Database do?
- WordPress problematic caching
- fastest replacement DB
- Optimising a big WordPress site
- Optimizing a WordPress site
- How can I improve the performance of this query_posts loop?
- Minimizing scripts & css files that plugins add
- High traffic management in WP
- image resizing on post content without css and html tags
- How to deal with too many $_POST variable conditions from ajax request at backend? [closed]
- How can i unload effect.min.js file?
- Limit scripts and styles on dashboard for user role
- Optimising WP_Query with ACF Fields
- WP Optimization: Overwriting options to autoload=yes for often used options?
- How to deliver webp format of images to WP REST API
- How to do chunked JS files in WordPress?
- Will memcached improve performance with WP Super Cache already running?
- SQL: How to find all attachments that are not used in any posts/pages/custom_post_types
- How to optimize wp_delete_post() function, or why it is so slow
- Reusing old post IDs
- WordPress Query optimaization for slow query
- Is there any way to get all custom posts and all custom terms with it’s meta in few queries?
- Optimized PHP & WordPress settings for speed/performance?
- How to optimize wp_option table?
- Why are the latest visits to my website originating from my own website?
- Serve resources from a consistent URL GT Metrix
- Run command to optimize images after they get uploaded to WordPress
- ordering and optimizing functions
- Optimizing multiple WP_querys into one call?
- admin.php taking 14 seconds
- What can cause JavaScript and CSS files to be minified?
- Avoid landing page redirects issue in wordpress multisite
- Varnish + Nginx for WordPress is Good?
- Viewing a WordPress website in landscape [closed]
- Delete old thumbnail when updating new
- Reduce initial server response time wordpress
- How to use Virtual Private Server as WordPress Image CDN
- How can I improve and optimise my wordpress web server for better performance in 2023