Jump to content

Help improve my YSlow score


Recommended Posts

Going to need more information than what you've given. What's the site that you're trying to optimise? What page did you run the YSlow test on? If you're doing performance testing in, say, forum threads, you may have a lot of external requests for members' signatures, posted images, etc. This is inevitable, and it's a fact of life when running a forum.

However, even without that information there's still a lot of low-hanging fruit. If you're fully self-hosted, setting up your site behind a CDN can improve things quite a bit. Your CDN would be able to deliver content more efficiently, and they would also be able to add expires headers and gzip compression to content on your own site.

Link to comment
Share on other sites

On 10/22/2016 at 6:07 PM, ASTRAPI said:

Cloudflare free CDN :-)

A few months back it was suggested I use this in htacess

Does using a CDN mean I wouldn't need to do that? I don't know completely how it works or how to set one up, or if they work as successful if I continue to host my files

Link to comment
Share on other sites

That .htaccess sets cache headers for static content and uses gzip compression to reduce bandwidth needs. Cloudflare and other CDNs can do that with the click of a button, so you wouldn't need to modify your .htaccess file.

I also use Cloudflare for my website. Cloudflare's free offerings alone are brilliant and can significantly improve performance, plus there's other performance-enhancing goodies such as HTTP/2.

Link to comment
Share on other sites

I have installed Cloudfront CDN for the uploads directory, and made no other changes (apart from remove the stuff in htacess for cache headers). But look at the difference? Something isn't right surely.

cdn.png

Pagespeed has gone from B to E and Yslow score E to F. Are there specific settings in cloudfront I need to change?

Link to comment
Share on other sites

Took the CDN off and it goes back to B and E and does in general feel faster than it was with the CDN in place.

It's the code I place in htacess that has  the main effect, if I remove that without the cdn it goes right back down to E and F again. But with it in place it is always B and E.

Link to comment
Share on other sites

37 minutes ago, marklcfc said:

Took the CDN off and it goes back to B and E and does in general feel faster than it was with the CDN in place.

It's the code I place in htacess that has  the main effect, if I remove that without the cdn it goes right back down to E and F again. But with it in place it is always B and E.

htaccess file only affects resources are hosted on your server. You use too many external resources and this slow speed site, exmaple



There are 21 static components without a far-future expiration date.

    https://www.googletagservices.com/tag/js/gpt.js
    http://s.skimresources.com/js/93432X1547540.skimlinks.js
    https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&correlator=2826908686458844&output=json_html&callback=callbackProxy&impl=fif&eid=108809080%2C108809132%2C108809136&sc=0&sfv=1-0-4&iu=%2F48389974%2Fft_leaderboard&sz=728x90&cookie_enabled=1&lmt=1477315574&dt=1477315574259&cc=100&frm=20&biw=1024&bih=790&oid=3&adx=148&ady=144&adk=1617115062&gut=v2&ifi=1&u_tz=-420&u_his=1&u_h=861&u_w=1024&u_ah=861&u_aw=1024&u_cd=24&u_nplug=1&u_nmime=2&u_sd=1&flash=11.2.202&url=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&dssz=5&icsg=8&std=4&csl=86&vrg=103&vrp=103&ga_vid=110900983.1477315574&ga_sid=1477315574&ga_hid=78009616
    https://www.google-analytics.com/analytics.js
    http://p.skimresources.com/px.gif?ch=1&rn=7.992998666182473
    http://p.skimresources.com/px.gif?ch=2&rn=7.992998666182473
    http://r.skimresources.com/api/?callback=skimlinksApplyHandlers&data=%7B%22pubcode%22%3A%2293432X1547540%22%2C%22domains%22%3A%5B%22facebook.com%22%2C%22twitter.com%22%2C%22invisionpower.com%22%5D%2C%22page%22%3A%22http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F%22%7D
    http://cas.criteo.com/delivery/ajs.php?zoneid=435061&nodis=1&cb=70224572456&exclude=undefined&charset=windows-1252&loc=http%3A//www.foxestalk.co.uk/forums/
    http://pagead2.googlesyndication.com/pagead/osd.js
    https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&correlator=2826908686458844&output=json_html&callback=callbackProxy&impl=fif&eid=108809080%2C108809132%2C108809136&sc=0&sfv=1-0-4&iu=%2F48389974%2Fft_footer&sz=728x90&cookie=ID%3D3e2f80ccad56831b%3AT%3D1477315574%3AS%3DALNI_MZCi8eP-bHGYLmz4SvkDQp8ToVGeA&cookie_enabled=1&lmt=1477315575&dt=1477315575291&cc=100&frm=20&biw=1024&bih=790&oid=3&adx=148&ady=1747&adk=1816196590&gut=v2&ifi=2&u_tz=-420&u_his=1&u_h=861&u_w=1024&u_ah=861&u_aw=1024&u_cd=24&u_nplug=1&u_nmime=2&u_sd=1&flash=11.2.202&url=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&dssz=21&icsg=142868476&std=1&vrg=103&vrp=103&ga_vid=110900983.1477315574&ga_sid=1477315574&ga_hid=78009616
    http://cat.sv.us.criteo.com/delivery/lg.php?cppv=1&cpp=6oVe8XwwMVpjNnFTSnRUQ3NTa0w2RG50THVGQjhhSmszaHNzdkZzZkVaSVphY2xUTkJvMFZGZkRLVmpONlhybGpmUS9NaTR2cWQ4ajJLalhESkFnVmdVMEVOZldGbnhabTFBU1ZkdUt2cTdSenlpb1piTGp2L0pDUzhjaFk2TnlQV3RKWFJEL05Qb3FiNVhUdllMaW9aTTVJNU5ETDZyMWVySmJJYTJKSXdRRTUzOGM5bTluenRkQitDQ0JVL3MraUxQMmQ4bVFiQUxOTVlZS2U0MXpUSmNCUldsZllqd3dEVE9rZTZLdWltdmRIRVg4PXw%3D
    http://cas.criteo.com/delivery/ajs.php?zoneid=435075&nodis=1&cb=36528082135&exclude=undefined&charset=windows-1252&loc=http%3A//www.foxestalk.co.uk/forums/
    https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&correlator=3801556215881323&output=json_html&callback=googletag.impl.pubads.setPassbackAdContents&impl=s&eid=108809080%2C108809132%2C108809136&sc=0&sfv=1-0-4&iu=%2F48389974%2FCriteo_Top_LB_Passback&sz=728x90&eri=2&cookie=ID%3D3e2f80ccad56831b%3AT%3D1477315574%3AS%3DALNI_MZCi8eP-bHGYLmz4SvkDQp8ToVGeA&cdm=www.foxestalk.co.uk&lmt=1477315575&dt=1477315575719&cc=100&ea=0&frm=23&biw=1024&bih=790&isw=728&ish=90&oid=3&adk=2446725495&ifi=1&ifk=2508156715&u_tz=-420&u_his=1&u_h=861&u_w=1024&u_ah=861&u_aw=1024&u_cd=24&u_nplug=1&u_nmime=2&u_sd=1&flash=11.2.202&nhd=1&url=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&top=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&dssz=5&icsg=24&mso=512&std=7&vrg=103&vrp=103&ga_vid=1813763539.1477315576&ga_sid=1477315576&ga_hid=1874793989
    http://cat.sv.us.criteo.com/delivery/lg.php?cppv=1&cpp=aKaD6nxvVVlDZ2JtSkQ1WXZyK1hZSURIWnlRaDFBUFRIM1ZnejM5VDZmcHpBKy82Q0RET0VnVlFFaDlDTnJTcW5XS2dBU09UblE3SEFyNFEvUnRBT2QrWCs3b2sxcVIybnlZY29PK3FKTXNWK1VOeCt2akZ4WjJvaFV3T01Md2gzNWprY09zRlVtT2hsV3F1NzhvNGVzQ1k5ZDFESmIxc0Z6eHpXamJFSURVVjQrZlh5NU5HNVV6MkJsZUJ0U1RjUFJ4SkcrMUZTUlp4bXNua09XYlRqVU9hWlhwT3dzTWd3enI3QTRrdG1NK3o2MEcwPXw%3D
    http://dis.criteo.com/rex/match.aspx?c=30&uid=tjaPtsOePso7&ev=1&pid=560602
    http://delivery.d.switchadhub.com/adserver/sat.js
    https://securepubads.g.doubleclick.net/gampad/ads?gdfp_req=1&correlator=2621579856633109&output=json_html&callback=googletag.impl.pubads.setPassbackAdContents&impl=s&eid=108809080%2C108809133%2C108809137%2C108809150&sc=0&sfv=1-0-4&iu=%2F48389974%2FCriteo_Ft_LB_Passback&sz=728x90&eri=2&cookie=ID%3D3e2f80ccad56831b%3AT%3D1477315574%3AS%3DALNI_MZCi8eP-bHGYLmz4SvkDQp8ToVGeA&cdm=www.foxestalk.co.uk&lmt=1477315576&dt=1477315576485&cc=100&ea=0&frm=23&biw=1024&bih=790&isw=728&ish=90&oid=3&adk=4239860147&ifi=1&ifk=1876293747&u_tz=-420&u_his=1&u_h=861&u_w=1024&u_ah=861&u_aw=1024&u_cd=24&u_nplug=1&u_nmime=2&u_sd=1&flash=11.2.202&nhd=1&url=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&top=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&dssz=5&icsg=24&mso=512&std=7&vrg=103&vrp=103&ga_vid=820359060.1477315576&ga_sid=1477315576&ga_hid=1776939670
    https://p.skimresources.com/?provider_id=ca4f8c4bc3639975ada8d6fbd7eafe20&skim_mapping=true
    http://pagead2.googlesyndication.com/activeview?avi=BocF_9wsOWLXzL86U-gPu7q64BgAAAAAQATgByAEJwAIC4AIA4AQBoAYW&cid=CAASFeRoP1C1c_r8VIfOhovYUJdGiijOVg&id=osdim&ti=1&adk=2446725495&p=199,148,199,876&tos=0,0,0,0,0&mtos=0,0,0,0,0&rs=3&ht=0&mc=0&lte=-1&bas=0&bac=0&fp=correlator%3D3801556215881323%26eid%3D108809080%252C108809132%252C108809136%26iu%3D%252F48389974%252FCriteo_Top_LB_Passback%26oid%3D3%26ifk%3D2508156715%26url%3Dhttp%253A%252F%252Fwww.foxestalk.co.uk%252Fforums%252F&afp=%26output%3Djson_html%26impl%3Ds%26dt%3D1477315575719%26ifi%3D1%26flash%3D11.2.202&r=u&bs=1024,790&bos=1024,861&ps=1024,1943&ss=1024,861&tt=377&pt=-1&deb=1-0-1-4-1--1&tvt=5&iframe_loc=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&is=728,90&uc=1&tgt=nf&cl=0
    http://pagead2.googlesyndication.com/activeview?avi=BOG4K-AsOWMr6I46P-gO894PwBgAAAAAQATgByAEJwAIC4AIA4AQBoAYW&cid=CAASFeRo78VN__HdMsgvSy9gfdbji7lwIw&id=osdim&ti=1&adk=4239860147&p=1747,148,1747,876&tos=0,0,0,0,0&mtos=0,0,0,0,0&rs=3&ht=0&mc=0&lte=-1&bas=0&bac=0&fp=correlator%3D2621579856633109%26eid%3D108809080%252C108809133%252C108809137%252C108809150%26iu%3D%252F48389974%252FCriteo_Ft_LB_Passback%26oid%3D3%26ifk%3D1876293747%26url%3Dhttp%253A%252F%252Fwww.foxestalk.co.uk%252Fforums%252F&afp=%26output%3Djson_html%26impl%3Ds%26dt%3D1477315576485%26ifi%3D1%26flash%3D11.2.202&pb=0,0,0,728&r=u&bs=1024,790&bos=1024,861&ps=1024,1943&ss=1024,861&tt=491&pt=-1&deb=1-0-1-3-1--1&tvt=5&iframe_loc=http%3A%2F%2Fwww.foxestalk.co.uk%2Fforums%2F&is=728,90&uc=1&tgt=nf&cl=0
    http://rtax.criteo.com/delivery/rta/rta.js?netId=5401&cookieName=crtg_switchuk_n&varName=crtg_content&rnd=36962207124

Also strange redirects you use - it also reduces your YSlow.



There are 6 redirects

    http://www.foxestalk.co.uk/ redirects to http://www.foxestalk.co.uk/forums
    http://www.foxestalk.co.uk/forums redirects to http://www.foxestalk.co.uk/forums/
    http://bh.contextweb.com/bh/rtset?... redirects to http://dis.criteo.com/rex/match.aspx?...
    http://bcp.crwdcntrl.net/5/c=7507/pv=y?... redirects to http://bcp.crwdcntrl.net/5/ct=y/c=7507/pv=y?...
    http://bcp.crwdcntrl.net/5/ct=y/c=7507/pv=y?... redirects to https://x.skimresources.com/?...
    https://x.skimresources.com/?... redirects to https://p.skimresources.com?...

etc.

Link to comment
Share on other sites

It does redirect to /forums but that is two instead of one for some reason. I can't explain the skimlinks redirects, maybe it is normal for that to happen with skimlinks?

I still expected the CDN to improve the speed but it didn't. It seems faster without.

Link to comment
Share on other sites

On 10/20/2016 at 11:12 AM, marklcfc said:

Any tips would be greatly appreciated

 

On 10/24/2016 at 2:12 PM, Muddy Boots said:

We don't use a CDN (Tried cloudflare and had loads of hassle with very poor support)  and have pretty good scores on a decent server setup.

A lot of poor scores can generally be attributed to poor server setup.

Have you all tried the .htaccess that I have here in the Marketplace?

 

Link to comment
Share on other sites

@EmpireKickass I wonder what the two reports look like for with/without. I mean, we can see the with Cloudflare which gives some insight to performance improvements. The custom theme also has a lot of customizations that take the score down. The load time being exactly at 2.0s is borderline for good/bad. Some retests are reporting over 2.0 which according to Google is when people lose interest and leave.

I want to see if I can improve the .htaccess optimizations in the near future.

Link to comment
Share on other sites

7 hours ago, Tarun said:

@EmpireKickass I wonder what the two reports look like for with/without. I mean, we can see the with Cloudflare which gives some insight to performance improvements. The custom theme also has a lot of customizations that take the score down. The load time being exactly at 2.0s is borderline for good/bad. Some retests are reporting over 2.0 which according to Google is when people lose interest and leave.

I want to see if I can improve the .htaccess optimizations in the near future.

Consider that it's an very heavy customizations theme with big images it has an very good score for that. The htaccess file that you have on the marketplace I already had that in my htaccess for some time now, I did edited it to day since there was an line missing for some odd reasons. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...