pagespeed

Weird pagespeed URL for PNG image?

隐身守侯 提交于 2019-12-05 19:27:19
I uploaded a PNG image with alpha transparency to my server with the filename logo.png, however, when the image is used on a page and I go to see it's file-path, I get: http://example.com/i/300x300xlogo.png.pagespeed.ic.0A66xVq4G9.png That file is nowhere to be seen on the server. I don't know if it affects it, but the actual image size is 400px by 400px, and I have it displayed in the HTML as 300px by 300px. (Don't ask.) Could it be my web-host doing this? Seems to prefix the file with the resolution to be displayed at: 300x300x and also has that weird suffix: .pagespeed.ic.0A66xVq4G9.png The

How to parallelize downloads across hostnames on WordPress?

荒凉一梦 提交于 2019-12-05 16:21:22
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 ? 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 simultaneous connections to the server as the browser allows in order to download these resources, but then

How do i use Cache Control and ETag to set http headers

耗尽温柔 提交于 2019-12-05 08:09:48
I want to use Cache Control and ETag in my joomla website as suggested by google. But have no idea how to do that. I googled it a lot but could not find any worty example. Can anybody tell me how to do that..?? For Cache Control i have found this example, but is this the complete syntax..?? and where to place it in <head> tag of the index.php file??. Also please tell me the syntax of ETag and the place where to write it. You can use your .htaccess file at the root of your website for this. You'll find lots of variations on the specifics, here's a comprehensive one from http://www.siteground

Expires header for Facebook JS SDK and Google Analytics

笑着哭i 提交于 2019-12-05 05:59:08
We all know adding a far-future expiration date to static resources is a good practice to increase our websites' page load speed. So we've ensured it for all of our resources BUT the all-too-common Facebook JS SDK and Google Analytics don't do that and thus lower the entire page's speed score. Examining the headers shows Facebook do 20 minutes: Cache-Control public, max-age=1200 Connection keep-alive Content-Type application/x-javascript; charset=utf-8 Date Tue, 23 Sep 2014 04:46:38 GMT Etag "566aa5d57a352e6f298ac52e73344fdc" Expires Tue, 23 Sep 2014 05:06:38 GMT and Google Analytics do 2

Efficient and inefficient CSS selectors (according to Google, PageSpeed …)

你离开我真会死。 提交于 2019-12-04 18:48:49
问题 While trying to reduce the HTML size of a web page, I've come across suggestions by Google and the PageSpeed Firefox Add-On regading efficiency of CSS selectors that (almost) made me reconsider the changes: http://code.google.com/intl/de-DE/speed/page-speed/docs/rendering.html#UseEfficientCSSSelectors Specifically, descendant selectors are great for selecting a whole block (e.g. DIV) using an ID or CLASS attribute and then keeping all of its child elements free of CLASS/ID attributes. But if

Ultimate solution to defer javascript and jquery after page is loaded

可紊 提交于 2019-12-04 17:02:26
As you probably know, Google PageSpeed Insights wants you to defer your javascript. Google itself suggests a solution to defer your code: <script type="text/javascript"> function downloadJSAtOnload() { var element = document.createElement("script"); element.src = "deferredfunctions.js"; document.body.appendChild(element); } if (window.addEventListener) window.addEventListener("load", downloadJSAtOnload, false); else if (window.attachEvent) window.attachEvent("onload", downloadJSAtOnload); else window.onload = downloadJSAtOnload; </script> Of course is a good solution, but it's far from the

Find score inside json result of PageSpeed Insight api v5

久未见 提交于 2019-12-04 11:26:27
问题 I'm trying the Google v5 API page speed insight but i don't find the SCORE inside the json result. This is the api https://www.googleapis.com/pagespeedonline/v5/runPagespeed In the v4 there is a ruleGroups.SPEED.score that contains an integer with the score. Where i can find the score inside the v5? Thanks 回答1: I think it is the following: json.lighthouseResult.categories.performance.score Returns a decimal with 1 as maximum. So you have to multiply with 100 to get the percentage. Works for

Best way for JSF to defer parsing of JavaScript?

我是研究僧i 提交于 2019-12-04 11:14:47
what is the best way to defer loading the JavaScript libraries (Richfaces, Primefaces, own stuff) with JSF to speed up page loading? As Google PageSpeed plugins says it is recommend to parse JavaScript when the site is loaded completely. One way to achieve this is to put the JavaScripts loads at the end of the <body> tag. An other way is to put the "defer" attribute to <script> tag, which can not be done with JSF's <h:outputScript> Tag as I saw. So, how would you do this? Use <h:outputScript target="body"> . It will then end up in the very end of <h:body> . It namely defaults to "current"

Tool for lossless image compression [closed]

我的梦境 提交于 2019-12-04 07:20:51
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Running Google Page Speed on a public site , I saw some suggestions by the tool like the following : Losslessly compressing http://g-ecx.images-amazon.com/images/G/01/electronics/detail-page/Acer-120x120._V137848950_.gi could save 4.8KiB (26% reduction) and they also provide a link to the optimized content.But they do it on a per image basis. I saw some significant reduction on file sizes after

Image spriting with mod_pagespeed

亡梦爱人 提交于 2019-12-04 06:05:00
问题 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