pagespeed

How to enable compression in Ruby on Rails?

别等时光非礼了梦想. 提交于 2019-12-03 02:38:28
I posted a similar question here Serving Compressed Assets in Heroku with Rack-Zippy but decided to give up on that service, since I couldn't get it to work. I ran PageSpeed Insights on my website to determine the speed of my website. The most important suggestion I received was to Enable Compression. Compressing resources with gzip or deflate can reduce the number of bytes sent over the network. Enable compression for the following resources to reduce their transfer size by 191.2KiB (74% reduction). I've followed the instructions on this website https://developers.google.com/speed/docs

How do I use google fonts on my site without compromising the page speed of the site

吃可爱长大的小学妹 提交于 2019-12-02 22:16:01
I use Google fonts and my site's typography. Looks great but it adds a great overhead. Is there a way I can still get the same look and feel for my website without compromising the speed of the site? I am analyzing my site here https://developers.google.com/speed/pagespeed and when I use Google fonts, I am getting a very low score around 60, but if I remove these fonts, then I have a good score. Is there a way I can use these fonts without compromising the web page quality? My priority is page optimization. Short answer: no. Slightly longer answer: no, you can try but it is highly unlikely

Google PageSpeed Insights API not working [PHP]

痞子三分冷 提交于 2019-12-02 19:39:42
问题 I'm a beginner in PHP, so maybe someone could help to fix this ? My web application is showing Google PageInsights API error.. Here's the code, I tried to change version to /v2/, but it still didn't work.. public function getPageSpeed($domain, $api = "") { try { $callback_url = "https://www.googleapis.com/pagespeedonline/v1/runPagespeed?"; $data = array( 'url' => 'http://' . $domain, 'key' => (empty($api) ? $_SESSION['GOOGLEAPI_SERVERKEY'] : $api), 'fields' => 'score,pageStats

How to make the 1st part of the site loads first? (Like in Google PageSpeed)

纵然是瞬间 提交于 2019-12-02 18:41:12
I have a very large site and it takes pretty long time to load. It takes around 120 seconds. What I'm trying to do is loads 1st half of the site loads 1st. Then user can surf while others parts are being loaded. What I'm trying to do is below. 1st of all is this possible ? According to my knowledge Yes since Google PageSpeed does that. But the problem is if I use PageSpeed I would have to change my DNS server settings and etc. I would like to do this myself. How can I get it done ? What type of technology should I use ? Given that pages have the .php extension and written in PHP language.

Image spriting with mod_pagespeed

爱⌒轻易说出口 提交于 2019-12-02 11:25:18
I've installed Google mod_pagespeed on Apache 2.2 and everything seems to be working except for the fact the image spriting is not working. I've set the LogLevel to debug and the only message I'm getting is: [Mon Mar 10 17:51:58 2014] [info] [mod_pagespeed 1.6.29.7-3566 @26487] Attempting to sprite css background. No further messages related to spriting show up in the logs. I can also confirm the Image Spriting is switched on: /mod_pagespeed_statistics?config Configuration: Version: 13: on Filters ah Add Head cw Collapse Whitespace cc Combine Css jc Combine Javascript gp Convert Gif to Png jp

how to cache external files

血红的双手。 提交于 2019-12-02 09:43:45
问题 I tested my website, for Google Page Speed. I did the cache optimizing in .htaccess, but it doesn't affect files that are from Facebook and Google+ Leverage browser caching http://connect.facebook.net/fr_FR/all.js (20 minutes) https://apis.google.com/js/plusone.js (30 minutes) https://oauth.googleusercontent.com/…e:rpc:shindig.random:shindig.sha1.js?c=2 (60 minutes) What can I do for solving this? 回答1: There is really nothing you can do at this point. Besides, the cache timeouts set by those

How can I figure out why my Wordpress pages load so slowly?

南楼画角 提交于 2019-12-01 10:46:29
Yet my site pages load very slowly. Usually there's a 2-3 second lag before the page renders, and I cannot figure out why. My site is powered by Wordpress v3.4.2. I'm on a dedicated virtual server with plenty of resources and bandwidth. There are no huge images loading. My CSS files load before JS scripts. I've spent a lot of time trying to optimize the site within the constraints of the platform (Wordpress + plugins, etc). I don't expect my site to be SUPER fast, but I need it to not be SO slow. I'm using Chrome's developer tools to audit my site but the suggestions do not appear to explain

How to compress HTTP response headers?

99封情书 提交于 2019-12-01 08:20:49
At the Velocity 2010 conference, Google said that header compression can yield big gains : Hölzle noted a glaring inefficiency in the handling of web page headers, which provide information about a user’s IP address, browser and other session data. The average web page makes 44 calls to different resources, with many of those requests including repetitive header data. Holzle said compressing the headers produces an 88 percent page load improvement for some leading sites. How does one ensure that the response headers sent by the web server are compressed? Is this even possible with today's

How can I figure out why my Wordpress pages load so slowly?

冷暖自知 提交于 2019-12-01 08:12:18
问题 Yet my site pages load very slowly. Usually there's a 2-3 second lag before the page renders, and I cannot figure out why. My site is powered by Wordpress v3.4.2. I'm on a dedicated virtual server with plenty of resources and bandwidth. There are no huge images loading. My CSS files load before JS scripts. I've spent a lot of time trying to optimize the site within the constraints of the platform (Wordpress + plugins, etc). I don't expect my site to be SUPER fast, but I need it to not be SO

configuring Tomcat for leveraging browser caching?

雨燕双飞 提交于 2019-12-01 02:16:27
问题 I ran Google's Page Speed on our web app to analyze and optimize our web site . One of the many items under Web Performance Best Practices as listed in Page Speed says "To take advantage of the full benefits of caching consistently across all browsers, we recommend that you configure your web server to explicitly set caching headers and apply them to all cacheable static resources, not just a small subset (such as images). Cacheable resources include JS and CSS files, image files, and other