简体   繁体   中英

Image optimization to load webpage faster

I have checked several thread in stackoverflow about this. I have followed several content over the net to compress the images. I have checked-

mod_deflate
mod_headers
mod_expires

for my Apache server. After two days searching I am posting here about this issue. I have tried headers, expires to write in .htaccess file. Nothing is working. No changes are showing in Google Page Speed Insights . I also have tried W3 Total Cache , WP Super Cache , Force GZip in WP . I need to optimize images. What can I do? Please, suggest me.

Total Platform of my website is as follows-

  1. cPanel
  2. Apache Server
  3. WordPress
  4. MySQL

Your question is borderline opinion-based, but... One thing you could try is domain sharding . The idea is you create extra DNS records.

Say you have mydomain.com . Create img1.mydomain.com , img2.mydomain.com , img3.mydomain.com . Now when you build your pages as you create the src attribute for your img tags you loop across these domains.

The idea is this tricks browsers into spawning more threads to load the images. Your mileage may vary.

Another thing you may consider would be a CDN , but it's pretty hard to suggest the best course of action here without more information.

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