Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pagespeed on app engine.. lots of issues. am i missing something?.. [php, appengine]

recently we deployed our site to google app engine and everything deployed successfully. now we enable pagespeed in settings.

now problem.

its making loading css in html head section with some wried script tag instead of style tag..

  1. i tried every and many confirmation settings but nothing works..
  2. i want to load google fonts css early in html (not working, for now disable filters related to css because of issue 1)
  3. i want it to combine all my js to one file and compress it. (not working)

here is 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 website www.justtotaltech.co.uk

and sometime its load css in html after refreshing page one or two times..

is there any to configure more advance settings of pagespeed in app.yaml or somewhere else like pagespeed service and mod_pagespeed

or is there any way to use external pagespeed service for appengine instead of one inbuit with it. (i tried this but it don't fetch content from origin domain (app engine))

someone said in below comments for removing pagespeed section and now site don't have it. but nothing work at all.

like image 432
dev.meghraj Avatar asked Mar 31 '14 14:03

dev.meghraj


1 Answers

for the issue 3. I contacted pagespeed team for related issue previously and got the following response.

CombineJs AND CombineCss are disabled automatically whenever FlushSubresources is enabled. this option is currently enabled by default.

So disable FlushSubresources first then combinJs rewriter will work.

Another thing worth to say is that you can actually preview the pagespeed results. For example:

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

It will be much easier to detect which filter cause the issue.

Workable Page Speed Config

pagespeed:
  enabled_rewriters:
  - MinifyCss
  - CombineJs
  - CombineCss
  disabled_rewriters:
  - FlushSubresources
like image 52
lucemia Avatar answered Sep 18 '22 12:09

lucemia