javascript - To increase site loading speed what should we aim at: decreasing http requests / saving overall page size? -
(my site has 110kb in images, 1 rotator, 2 google fonts)
my wordpress site made 30 http requests, took 7 seconds load, overall page size 220kb. changing various plugins, managed bring down requests 22, 6.1 seconds, page size bloated 320kb (2 google fonts classified css images, websiteoptimisation.com)
because minifying & combining .js no doubt, reduces filesize, sits in middle blocking everything.
i tried various script compressors, similar results. still yslow & pagespeed shout on minified files (this file have been compressed 40%...)
my question should aim at? reduce http requests/minify & combine files/prevent bloating overall page size?
in principal, depends on many factors (such as- if users have low bandwidth, might preferable keep page size minimum.)
in opinion, however, generally- number of http requests far more important page size.
keep in mind modern browsers can cache static content (.js files, .css etc.), page size might reduce on time.
if can supply more info on requests page generates, perhaps can give more specific advice.
Comments
Post a Comment