Find unminified CSS and JS files
find unminified css files | javascript not minified | pagespeed minify css | find large js files in theme | find | minify | css | javascriptfind /var/www/vhosts/example.com/httpdocs/wp-content -type f \( -name '*.css' -o -name '*.js' \) ! -name '*.min.*' -size +20k -exec sh -c 'echo "$(wc -l < "$1") $1"' sh {} \; | awk -v n=200 '$1 > n' | sort -rn | head -30Searches for CSS and JS files above a minimum size in kilobytes that do not end in .min.css or .min.js, and shows those with more lines than the threshold. Minified files usually consist of very few long lines, while many lines suggest readable source code. This is a heuristic, only the page source shows whether the file is actually served.
Note: Many plugins ship both variants and serve only the minified one. Caching plugins often minify only at delivery time.
Also searched as
- find unminified css files
- javascript not minified
- pagespeed minify css
- find large js files in theme