There are many things which you need to do for meeting Google's requirements. However 2 things which impacts to your score most are image optimization and minifying JavaScript + CSS.
In this article, I'll introduce my SEO Tools (written by C#) for solving above matters. You can checkout the source code here: https://github.com/vnheros/c-seotools
The tool uses the following tools:
- C# command line parser for .NET: https://github.com/commandlineparser/commandline (Nuget package: CommandLineParser)
- AjaxMin: http://ajaxmin.codeplex.com (Nuget package: AjaxMin)
- Caesium CommandLineTools: https://github.com/Lymphatus/caesium-clt
- Convert tool of ImageMagick: https://www.imagemagick.org/script/convert.php as recommendation of Google PageSpeed Insights
1. File XML configuration
Below is an example:
BackupSuffix is for copying the original .CSS or . JS file. For example: E:\test\big.js after optimizing ==> E:\test\big_Copy.js (containing original source code) and E:\test\big.js (minified code).
BackupOverwrite = 0 means every time running this tool, it will check and create a backup file with different suffix starting from _Copy1 to _Copy999; = 1 means all times running this tool, it only creates a backup file with suffix _Copy and overwrites it if existing.
DefaultOutPath is for out put folder (containing optimized images) in terms of you don't specify output folder in command.
2. Optimize only files listed in input file
You can use the following command:
SEOTools.exe -i input_fileFor example: input_file is E:\test\files.txt. Output to a folder (e.g. E:\test\output), let use:
SEOTools.exe -i input_file -s subfolder -o output_folderSubfolder is the folder containing image files for compressing, it is used for creating subfolders in backup folder.
3. Optimize all files in input folder (recursively)
You can use the command:
SEOTools.exe -i input_folder -t I -m FOBy default the tool will use Caesium, you can change to use ImageMagick by option -t I. As my experience Caesium gives smaller file size vs. ImageMagick, however ImageMagick runs faster than Caesium. Both also meets Google PageSpeed Insights.
With this tool, you can run after uploading images to your website or modifying CSS file / JavaScript file. Any comment is welcome.
Merry Christmas and Happy New Year!
It was awesome to read this article. I appreciate the person who shared this article having good knowledge about the topic. The blog shares lots of good information regarding Google’s PageSpeed Insight with a complete example. Keep it!
ReplyDelete100% free complete SEO solutions suit, check out search engine optimization tools which often used by SEO expert on day to day online operations. See More: https://freeseosolutions.com
ReplyDelete
ReplyDeleteThis is really helpful and informative, as this gave me more insight to create more ideas and solutions for my plan.keep update with your blog post.
Website Design Company in Bangalore
Website Development Company in Bangalore
Hi there. I discovered your web site by way of Google whilst looking for a similar matter, your website got here up. It appears to be good. I have bookmarked it in my google bookmarks to come back then.
ReplyDeletehire reactjs developers
Good job solving that customer need. Your ability to confidently handle problems has always been a valuable contribution to our need. You displayed great communication and problem-solving skills. I’m really loving your Sell Shop.
ReplyDeleteI have a very small blog. There I try to write something similar. Please visit On Page SEO Checker & enjoy Free Make Money. Keep up the good work!"
Our Product List :
1. SEO Tools
2. RSS Feed Commander
3. Link Spinner.
4. Bulk URL Checker
5. Keyword List Multiplier
6. How Many Diapers Does a Newborn Use a Day
7. Vital Proteins Chocolate Collagen Powder Supplement
8. What Are Backlinks? How To Get Free Backlinks
9. Backlinks Sites List Of 2022 | Top 2000+ Instant Approval
10. How to make money blogging for beginners in 2022