Pagespeed on the application engine .. a lot of problems. did i miss something? .. [php, appengine]

Recently, we have deployed our site in the Google App Engine and everything has been deployed successfully. Now we turn on the pages in the settings.

now the problem.

creating a css load in the html section of the head using some corrupted script tag instead of a style tag.

  • I tried all the confirmation settings, but nothing works.
  • I want to download Google css fonts at the beginning of html (does not work, at the moment disable the filters related to css due to problem 1)
  • I want it to combine all my js into one file and compress it. (does not work)

here is the page speed configuration in yaml.

pagespeed: enabled_rewriters: - ConvertMetaTags - ElideAttributes - CollapseWhitespace - CombineJs - ProxyCss - InlineCss - MinifyCss - RemoveComments disabled_rewriters: - FlushSubresources - WebpOptimization - InlineImages - ImageStripColorProfile - ProxyImages - ProxyJs - ImageRecompressPng - ImageProgressiveJpeg - ImageConvertToJpeg - DeferJs - MoveCssToHead - InlineJs - InlinePreviewImages 

here is the site www.justtotaltech.co.uk

and someday its loading css in html after refreshing the page once or twice.

are there any additional settings for the page parameters in the app.yaml application or elsewhere, for example, in the pagespeed and mod_pagespeed services

or is there a way to use an external page service for appengine instead of a single inbuit with it. (I tried this, but it does not extract content from the source domain (application engine))

someone said in the following comments to remove the section of pages in the press, and now the site does not have it. but nothing works.

+6
source share
2 answers

for issue 3. I contacted the pagespeed team on a related issue earlier and received the following answer.

CombineJs AND CombineCss turns off automatically when FlushSubresources is enabled. this option is enabled by default.

So, first turn off FlushSubresources, then the compiler will work.

Another thing worth saying is that you can preview the results of the pages. For instance:

view-source: http://www.justtotaltech.co.uk/services/software-development/?ModPagespeedFilters=combine_javascript,combine_css

It is much easier to detect which filter is causing the problem.

Working Page Speed ​​Configuration

 pagespeed: enabled_rewriters: - MinifyCss - CombineJs - CombineCss disabled_rewriters: - FlushSubresources 
+7
source

Great question, since I am experiencing similar problems. I wanted to start with a link to a page of a Google developer doc (which I am sure you viewed):

As they noted there, "App Engine support for PageSpeed ​​is an experimental, innovative and fast-paced new feature for Google App Engine. Unfortunately, at the edge of bleeding, we can make backward-incompatible changes to App Engine support for PageSpeed "We will let the community know when this feature is no longer experimental."

So I'm not surprised to hear that you experienced changes in performance that were somewhat arbitrary. To paraphrase the developer’s documents, I see the following in terms of testing (since this is what I am trying to do for my own application). To work with things, you can try to be very intentional and try different test configurations (which, I believe, already exist). This, said, if you haven’t done this, and you want to try a new configuration, perhaps to test some "risky" optimizations, you can expect that this can be done in the test version of the application, while your users continue to use the default application. Version. Unfortunately, since updating the configuration of the test version applies to all versions, the "risky" settings apply to the version that your users also use. Instead, to try these settings, you can:

  • Disable PageSpeed ​​for your application, update your PageSpeed ​​configuration and view your site with the PageSpeed ​​chrome extension

  • Copy the relevant parts of the application into a separate test application that has its own identifier and application versions.

If you find any specific solutions to the problem, submit them here!

+2
source

All Articles