Jump to content

Question about GTmetrix Page speed


TAMAN

Recommended Posts

Posted

So far i tried to optimize my forum to look good and faster through testing at https://gtmetrix.com

but one thing i dont understand is 

for example here https://gtmetrix.com/reports/hellshammers.net/zXewQkME

it says "Specify image dimensions, The following image(s) are missing width and/or height attributes."

the images are only emotions and profile pictures

could it be because i have changed profile pictures from 90x90 to 150x150?  what about emoticons? and is there some how i can fix it?

 

 

 

Posted

'width and/or height' attributes of images have no great importance for speed.

Deceleration your site by analitycs.js from google-analitycs.com

Download this file,  http://www.google-analytics.com/analytics.js

save it as analitycs.js, upload to your server. Edit address in code google analytics

<script>(function(d,e,j,h,f,c,b){d.GoogleAnalyticsObject=f;d[f]=d[f]||function(){(d[f].q=d[f].q||[]).push(arguments)},d[f].l=1*new Date();c=e.createElement(j),b=e.getElementsByTagName(j)[0];c.async=1;c.src=h;b.parentNode.insertBefore(c,b)})(window,document,"script","//yoursait/yourfolder/analytics.js","ga");ga("create","UA-61448120-1","auto");ga("send","pageview");</script>

and fix browser cache.

Other you can improve - enable cookie-free domain and load resources in this domain. YSlow will improve by more than 5 points

Posted
13 hours ago, Adlago said:

'width and/or height' attributes of images have no great importance for speed.

Deceleration your site by analitycs.js from google-analitycs.com

Download this file,  http://www.google-analytics.com/analytics.js

save it as analitycs.js, upload to your server. Edit address in code google analytics


<script>(function(d,e,j,h,f,c,b){d.GoogleAnalyticsObject=f;d[f]=d[f]||function(){(d[f].q=d[f].q||[]).push(arguments)},d[f].l=1*new Date();c=e.createElement(j),b=e.getElementsByTagName(j)[0];c.async=1;c.src=h;b.parentNode.insertBefore(c,b)})(window,document,"script","//yoursait/yourfolder/analytics.js","ga");ga("create","UA-61448120-1","auto");ga("send","pageview");</script>

and fix browser cache.

Other you can improve - enable cookie-free domain and load resources in this domain. YSlow will improve by more than 5 points

hi @Adlago

whats the different if i change  " http://www.google-analytics.com/analytics.js " address to another one i upload to my server? 

and im not really sure what to do with the caches i use the default file system method at acp and i also have this htaccess uploaded

https://community.invisionpower.com/files/file/7514-htaccess-for-ips-forums/

Posted
1 hour ago, Adlago said:

Login on your sait FTP root directory
Create a folder for example 'google'
Upload this file there

analytics.js

Edit google script as I have done with the new address: "http://yoursait/google/analytic.js"

 

analytics.js

yes i know but i wonder why? what are the benefits of uploading analytics.js instead of using the "http://www.google-analytics.com/analytics.js" in my google tracking code, whats the difference?

Posted
22 hours ago, Adlago said:

'Other you can improve - enable cookie-free domain and load resources in this domain. YSlow will improve by more than 5 points

DO NOT do this if you are running SSL and using SPDY or especially HTTP2.  It will slow your site down.

Posted
7 hours ago, MRniceGUY1990 said:

yes i know but i wonder why? what are the benefits of uploading analytics.js instead of using the "http://www.google-analytics.com/analytics.js" in my google tracking code, whats the difference?

The difference is in Leverge browser caching. When this JS is loaded from your server will be correctly used browser cache

Posted
5 minutes ago, Tracy Perry said:

DO NOT do this if you are running SSL and using SPDY or especially HTTP2.  It will slow your site down.

Please, comment this:

Quote

SPDY (pronounced speedy) is an open networking protocol developed primarily at Google for transporting web content. SPDY manipulates HTTP traffic, with particular goals of reducing web page load latency and improving web security. SPDY achieves reduced latency through compression, multiplexing, and prioritization, although this depends on a combination of network and website deployment conditions. The name "SPDY" is a trademark of Google and is not an acronym.

Throughout the process, the core developers of SPDY have been involved in the development of HTTP/2, including both Mike Belshe and Roberto Peon. As of February 2015, Google has announced that following the recent final ratification of the HTTP/2 standard, support for SPDY would be deprecated, and that support for SPDY would be withdrawn completely in 2016.

 

Posted
37 minutes ago, Adlago said:

Please, comment this:

 

Quote

HTTP2 makes the cost of multiple requests far less because of a number of techniques it does itself.

  • It can leave the connection open for re-use for very extended periods of time, so there's no need for that costly handshake that HTTP1 requires for every request.
  • HTTP2 also uses compression, unlike HTTP1, and so the size of the request is significantly smaller - and thus faster.
  • HTTP2 multiplexes; it can send and receive multiple things at the same time over one connection.

All that means not only are the old HTTP1 techniques not needed, they'll actually make things slower. You may be loading assets that are not required for the page being viewed (concatenation and spriting are likely to do this), and sharding invokes DNS lookups which slow things down, despite HTTP2 meaning you don't need to shard in the first place.

Just some info that's out.. not to mention, if you REALLY do a full cookieless domain, it will typically need to be SSL also if serving images.  Otherwise you get a mixed-mode alert lock in the address bar (and yes, I know that IPS doesn't think it's a big deal, but it really is for most people that it's not best practice).

Posted

 

I am more skeptical about this protocol...

Quote

The protocol itself is criticized for being inconsistent and having needless, overwhelming complexity. It also violates protocol layering principle,for example by duplicating flow control with transport layer (TCP). Most concerns, however, have been related to encryption issues.

 

Posted

PP. But that's another topic.

Why are you against cookie-free domain?
Give an example of this

Quote

DO NOT do this if you are running SSL and using SPDY or especially HTTP2.  It will slow your site down.

 

Posted
1 minute ago, Adlago said:

PP. But that's another topic.

Why are you against cookie-free domain?
Give an example of this

 

If you use cookie free domain for your images, and your site is under SSL, you will end up (unless you have a wildcard SSL) with insecure content warnings (and sometimes it will not display).  Once you put the other domain under SSL, then you have added overhead to the negotiation sequence for the connection...

Posted
1 hour ago, Adlago said:

The difference is in Leverge browser caching. When this JS is loaded from your server will be correctly used browser cache

Done :) 

and what about cookies? i use the file system method at acp 

i use this htaccess https://community.invisionpower.com/files/file/7514-htaccess-for-ips-forums/

do you have any other recommendations? i dont really want to do the cookie-free domain

thanks btw 

Posted

Later I will write how to include cookie-free domain. I do not have time now.

In your htaccess file missing 'Expires header' from js. See my htaccess and add what you are missing

 

 

Posted
2 hours ago, Adlago said:

Later I will write how to include cookie-free domain. I do not have time now.

In your htaccess file missing 'Expires header' from js. See my htaccess and add what you are missing

 

 

Thank you so much

Posted

How to create a cookie-free domain?

1. Log into your cPanel menu 'Subdomains'

2. Create subdomains 'cfd.hellhammers.net' as I have shown

step1

sub.png.acebda4e68980797089e46f546194070

step2

sub2.png.dbe0b732d8ae11273e75bd7ed58e93c

Verification: Before continuing execute instructions check your cookie-free domain. Start from the browser address bar this link

http://cfd.hellshammers.net/forum

If your forum load normally - then everything is fine and you can continue.

 

3. Log in ACP

Open

st_set_0.thumb.png.98bead9e9c0037172944c

st_set_1.thumb.png.909ed1201c4a08fa65003

Create your new setting as I have shown

st_set.thumb.png.2d6d4a2f55fad3db9eb2e0b

Select your resource that will boot from cookie-free domain -> use the drop-down menu and select.

st_set_final.thumb.png.4cb33976d9eed1e03

Save the change. Your resource will be loaded by your cookie-free domain. You can select all the resources or resource that you want.

Note: This method keeps your files wherever they are.This method only changes the loading address.

This method works with Apache server without any problems. I have not tested with other types of servers.

 

 

st_set_final.png

Posted

When the browser requests a static resours (images,js,css) and sends cookies with the request, the server ignores the cookies. These cookies are unnecessary network traffic. Serve static content from a different domain to avoid unnecessary cookie traffic.

You can do this with your other domain, but it costs money.
Using subdomain as a cookie-free domain solves problem with cookies traffic and is easy and does not cost new money.

Posted
7 hours ago, MRniceGUY1990 said:

Hi @Adlago

do i need to redirect cfd subdomain to my forum? 

The example that I have done is for your domain.
cdf subdomain  only a root directory - Do not redirect subdomain to Forum.

Posted
On Sat Oct 24 2015 23:28:02 GMT+0300 (Arabic Standard, Adlago said:

Verification: Before continuing execute instructions check your cookie-free domain. Start from the browser address bar this link

http://cfd.hellshammers.net/forum

If your forum load normally - then everything is fine and you can continue.

but how can my forum load just by creating a subdomain like this without a redirect or something? my forum doesn't load 

http://cfd.hellshammers.net/forum

 

Archived

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

  • Recently Browsing   0 members

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