TAMAN Posted October 23, 2015 Share Posted October 23, 2015 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? Link to comment Share on other sites More sharing options...
Adlago Posted October 23, 2015 Share Posted October 23, 2015 '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 Link to comment Share on other sites More sharing options...
TAMAN Posted October 23, 2015 Author Share Posted October 23, 2015 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/ Link to comment Share on other sites More sharing options...
Adlago Posted October 23, 2015 Share Posted October 23, 2015 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 Link to comment Share on other sites More sharing options...
TAMAN Posted October 24, 2015 Author Share Posted October 24, 2015 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? Link to comment Share on other sites More sharing options...
Tracy Perry Posted October 24, 2015 Share Posted October 24, 2015 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. Link to comment Share on other sites More sharing options...
Adlago Posted October 24, 2015 Share Posted October 24, 2015 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 Link to comment Share on other sites More sharing options...
Adlago Posted October 24, 2015 Share Posted October 24, 2015 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. Link to comment Share on other sites More sharing options...
Tracy Perry Posted October 24, 2015 Share Posted October 24, 2015 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). Link to comment Share on other sites More sharing options...
Adlago Posted October 24, 2015 Share Posted October 24, 2015 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. Link to comment Share on other sites More sharing options...
Adlago Posted October 24, 2015 Share Posted October 24, 2015 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. Link to comment Share on other sites More sharing options...
Tracy Perry Posted October 24, 2015 Share Posted October 24, 2015 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... Link to comment Share on other sites More sharing options...
Tracy Perry Posted October 24, 2015 Share Posted October 24, 2015 35 minutes ago, Adlago said: I am more skeptical about this protocol... Here's you an interesting read... http://http2-explained.haxx.se/content/ Link to comment Share on other sites More sharing options...
TAMAN Posted October 24, 2015 Author Share Posted October 24, 2015 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 Link to comment Share on other sites More sharing options...
Adlago Posted October 24, 2015 Share Posted October 24, 2015 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 Link to comment Share on other sites More sharing options...
TAMAN Posted October 24, 2015 Author Share Posted October 24, 2015 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 Link to comment Share on other sites More sharing options...
Adlago Posted October 24, 2015 Share Posted October 24, 2015 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 step2 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 Create your new setting as I have shown Select your resource that will boot from cookie-free domain -> use the drop-down menu and select. 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. Link to comment Share on other sites More sharing options...
TAMAN Posted October 24, 2015 Author Share Posted October 24, 2015 Thank you so much for the information i appreciate your kind and helping sir :* gonna set it up when i get time cheers Link to comment Share on other sites More sharing options...
Ibragim Pupkevich Posted October 25, 2015 Share Posted October 25, 2015 Hi @Adlago, could you tell us a bit more about cookie-free-domain? What's the main idea of doing such way? Link to comment Share on other sites More sharing options...
Adlago Posted October 25, 2015 Share Posted October 25, 2015 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. Link to comment Share on other sites More sharing options...
TAMAN Posted October 26, 2015 Author Share Posted October 26, 2015 Hi @Adlago do i need to redirect cfd subdomain to my forum? Link to comment Share on other sites More sharing options...
Adlago Posted October 26, 2015 Share Posted October 26, 2015 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. Link to comment Share on other sites More sharing options...
TAMAN Posted October 26, 2015 Author Share Posted October 26, 2015 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 Link to comment Share on other sites More sharing options...
Adlago Posted October 26, 2015 Share Posted October 26, 2015 Your domain is http://hellshammers.net/ Your new subdomain http://cfd.hellshammers.net/ loaded page your host provider So http://cfd.hellshammers.net/forum goes Internal server error You made a mistake in its creation. Link to comment Share on other sites More sharing options...
Adlago Posted October 26, 2015 Share Posted October 26, 2015 Open editing sub domain and make screen. Attach it here. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.