HTML Optimization
HTML Optimization means to reduce the length of web page contents by eliminating extra non required white spaces. This may also help in boosting the load speed. The benefit of optimized pages is that they consume lower bandwidth and load faster due to fewer contents as compared to the original.
PTSource WebFast
PTSource WebFast is a script that safely reduces and optimizes the size of your html code boosting the load speed in the manner that pages consume lower bandwidth. Once included, PTSource WebFast automatically installs a handler for HTML output that optimizes the HTML output and replaces it with the optimized version. No additional coding is required.
How to install
- Upload webfast.inc and webfast.php your website root.
- If your first file is an index.html change it to index.php.
- Include the code bellow at the top of your index.php.
<?php $no_context = true; $use_js = false; include('webfast.php'); ?>
Requirements
Developed using php 7.4.5 but it should work with any php version.
Note : All software tutorials always refer and are updated to reflect the latest version. Check always if you have the latest version and if not so update your version.
If you liked this project fell free to share it.