CodeIgniter - Minify HTML using hooks
Compacting HTML code, including any inline JavaScript and CSS
contained in it, can save many bytes of data and speed up downloading,
parsing, and execution time
Installation:
- Copy /application/config/hooks.php and /application/hooks/Minifyhtml.php into your application folder Project.
set $config['enable_hooks'] = TRUE;
in your application/config/config.php
Everytime you call `$this->load->view('view/view_file');`, output function in Minifyhtml Class will be used.
Data tables not displaying after using this
ReplyDeleteyou can try this free online service to minify js and compress css, so it will reduce the size of web page.
ReplyDeleteNice article. It's very helpful to me. Thank you for share with us. Can you please check my article Fix Autoptimize WP plugin JavaScript optimize issue
ReplyDelete