I want to optimize the page loading, using PHP and scripting language. Is there any way to compress the HTML which is being loaded from the template URL, so that based on that scenario I can achieve the goal?
2 Answers
Most webservers will automatically compress HTTP GET requests with something like gzip. Just make sure to turn on server compression for your php server.
2 Comments
Gangnam
Can you list the server name? Or any other way to compress the HTML content? if any library is available or not,please share with me. we can also compress using .htaccess so such away that we can compress the HTML using angular or not?
Adam Kewley
If you're running a bare PHP implementation, then I guess you could just follow the steps outlined in other answers and blog posts