google-pagespeed

How to parallelize downloads across hostnames on WordPress?

安稳与你 提交于 2020-01-13 11:15:01
问题 I'm getting this message "Parallelize downloads across hostnames" when checking my WordPress site on GTmetrix > https://gtmetrix.com Here are the details > https://gtmetrix.com/parallelize-downloads-across-hostnames.html How do I fix that ? 回答1: Details Web browsers put a limit on the number of concurrent connections they will make to a host. When there are many resources that need to be downloaded, a backlog of resources waiting to be downloaded will form. The browser will make up as many

Get overall score in google pagespeed curl request-PHP

筅森魡賤 提交于 2020-01-11 14:13:28
问题 I am using v4 google pagespeed API which is till now working fine but suddenlt I get {{BEGIN_LINK}} , {{END_LINK}} in response, I think that should be removed before we get curl response. To overcome this issue I thought to try v5 , but it seems v5 response is complex to understand as compared to v4 . And my question is how can I get Page Score(0-100) in v5 ? My code is : $curl_data = curl_request("https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=https://www.ex.com&strategy

PageSpeed site optimization trouble

半世苍凉 提交于 2019-12-25 06:51:31
问题 I have a problem with the inclusion of compression on my website. Site hosted with WordPress and GZIP compression of HTML works fine even without any lines in the .htaccess or plug-ins. But the compression of JS/CSS does not turn on. Ive tried a lot of different codes, such as: <IfModule mod_deflate.c> <FilesMatch "\.(html|php|txt|xml|js|css)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> or AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html

Google Page Speed Insights API: Internet Error

孤者浪人 提交于 2019-12-24 06:00:54
问题 I am getting an error from Google PageSpeed Insights API. Its just returns Internal Error with Code 500. Here is the detailed response: "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "An error occurred while fetching or analyzing the page." } ], "code": 500, "message": "An error occurred while fetching or analyzing the page." } } I also Tried with Google API key from within Google Cloud Console (Enabled PageInsights APi for my account). No Luck still the

Google Page Speed Insights API: Internet Error

南笙酒味 提交于 2019-12-24 06:00:02
问题 I am getting an error from Google PageSpeed Insights API. Its just returns Internal Error with Code 500. Here is the detailed response: "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "An error occurred while fetching or analyzing the page." } ], "code": 500, "message": "An error occurred while fetching or analyzing the page." } } I also Tried with Google API key from within Google Cloud Console (Enabled PageInsights APi for my account). No Luck still the

Ensure text remains visible during webfont load not getting resolved in Google pagespeed insights

吃可爱长大的小学妹 提交于 2019-12-22 04:33:47
问题 Ensure text remains visible during webfont load issue is not getting resolved in google pagespeed insights report even after adding font-display: fallback to the CSS. How can I resolve the issue? @font-face { font-family: Jura; src: url(../fonts/Jura-Regular.eot); src: url(../fonts/Jura-Regular.eot?#iefix) format('embedded-opentype'), url(../fonts/Jura-Regular.woff2) format('woff2'), url(../fonts/Jura-Regular.woff) format('woff'), url(../fonts/Jura-Regular.ttf) format('truetype'), url(..

Why is Google PageSpeed Insights telling me to minify javascript & CSS (using Rails 3.2 with JS & CSS compression) and how to fix?

▼魔方 西西 提交于 2019-12-20 21:56:33
问题 I know it's not a lot I could save in KB, but to achieve a better score in Google PageSpeed Insights, and thus probably better SEO ranking, how can I fix this? From https://developers.google.com/speed/pagespeed/insights/?hl=en&url=www.tradebench.com : Minify JavaScript for the following resources to reduce their size by 2.8KiB (2% reduction). Minifying http://d2bfamm4k6zojq.cloudfront.net/…tion-ea806932c941fb875b7512a557ebead3.js could save 2.8KiB (2% reduction) after compression. It tells me

Leverage browser caching for 3rd party JS

我们两清 提交于 2019-12-17 04:32:11
问题 I have set Expiry on my httpd.conf ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType application/x-javascript "access plus 1 month" This helps with browser caching for images, fonts files, site own css and js files. But I also have external JS

Google mod_pagespeed for ajax loaded content

最后都变了- 提交于 2019-12-13 17:39:55
问题 I`m trying to optimze and convert images using mod_pagespeed and it works very good for all tags in html files. But how could it process images that loaded with js? For example images in slideshows and etc. Thanks! 回答1: mod_pagespeed normally optimizes images and other resources by detecting their URL in the HTML and then replacing the URL with a link to the optimized version. As of mod_pagespeed 1.4.26.1 however, mod_pagespeed includes a feature called In-Place Resource Optimization, which

How to Eliminate render-blocking JavaScript and CSS in above-the-fold content

心已入冬 提交于 2019-12-11 13:42:17
问题 I have speedup my desktop to 82/100, but mobile speed is still 60/100. Can anybody recommend me some tips about improving the mobile speed to 80/100. Here is link the my current Google PageSpeed Insights: https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.lutonairporttaxis.co.uk%2F&tab=mobile 回答1: There are a number of things that you could do to improve the score of your application. As PageSpeed Insights suggests, you could turn on your compression. This is an easy