When i active the newspaper and visit the home page, i saw the style.css file transfer size more than 1M, and other elements display after the css file transfer completed (the home page was blank when the browser loading the style.css file), then i visit the demo page, found the css file transfer size just less than 100k, that made my site so slow, how can i change the way to load the style.css file.
By the way, i try the apache,apache+nginx(fast cgi),apache+nginx(fpm), and i use plesk being the vps panel.
Thanks a lot.
-
This topic was modified 8 years by
johnson96590.
You should enable gzip in your webserver (either Apache, or Nginx) and then enable css and javascript compression using .htaccess for the site. This guide will help you also:
Hi,creb,many thanks for your reply, i sure know that, i once use the auto-optimize and fastest cache plugin to gzip the css and js and html file, so i can compress the css file from 1.1M to less than 900K, but i think it may still too big for the site, and i install the demo [helth&fitness], i visited the demo page, saw the transfer size only 87k, and the url is : https://demo.tagdiv.com/newspaper_health/, and i download the demo css file, when i saved the code into a css file, the size was 800k+, but i use develop tools of chrome to see the css transfer size, yes, still only 87K, so i am crazy now, what can i do for that.
Please help me, i can give a account of my plesk panel and a account of my wordpress to see what happened there.
Hope your reply.
Try tools.pingdom.com. Over there you can test your site for speed and other stuff.
After you test your site scroll down at the waterfall section (File requests) and view style.css file. Mine was 119kb in size. It also says that it’s gzipped. I use default demo template. Here’s a screenshot:

Many thanks to you, cre8, i will check the plesk, to see whether gzip open or not, if still has question, i will write here.
Again, thanks a lot.
Kind regards,
Happy to letter you know, i checked the plesk, i use apache+nginx(fpm) being the web server, i forgot open the gzip for nginx, so the size much bigger than demo page, now i open it, and the css file size reduce to about 100+k, now my site works well, just letter you know that.
Thanks again,
Kind regards,
