简体   繁体   中英

How could I compress the HTML using angularjs while loading the template

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?

Most webservers will automatically compress HTTP GET requests with something like gzip. Just make sure to turn on server compression for your php server.

Compress the HTML on the server, not on the client. Eg a build step or a step before serving the file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM