Theme suddenly slow waiting for fonts.gstatic.com

Support Forums for LiveMesh Themes & Plugins Forums Appdev Theme Support Theme suddenly slow waiting for fonts.gstatic.com

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #14847
    rreben
    Member

    Hi,

    my website http://www.convincingapps.com was working all right. But since a couple of day it is awfully slow. >20 sec response time.

    Slowness is only on the webpages, dashboard and admin functions are normal. I disabled all plugins, but that does not make any difference.

    webpagetest.org shows that theme is waiting to connect to fonts.gstatic.com Maybe that is the reason for the problem.

    Please help!. I am using wordpress 4.2.2 on ubuntu, medium sizes AWS. No changes made from my side.

    cu RR

    #14852
    rreben
    Member

    Additional information: I disabled “smooth page load” in general options of the appdev theme. No effect.

    On inspection of http traffic I saw that there is a request to http://fonts.googleapis.com/css?family=Open+Sans+Condensed which results in the error “Font family not found”. I do not understand why this happens, and therefore do not know, whether this is linked to my load problem.

    #14853
    rreben
    Member

    Changing the fonts in the theme option does remove the error in the http traffic. But unfortunately does not have any effect on the slowness of the site. What to do??

    What is happening in the request to fonts.gstatic.com? why are there these requests? Why are these requests together with bg-repeat.jpg and back-to-top.png started after a delay of 18 sec?

    See waterfall diagram in original post.

    #14893
    Raghavendra
    Moderator

    In my case, the site was just waiting to connect to some server and ultimately spit out this connection timed out error –

    https://www.evernote.com/shard/s350/sh/1eb7d6fd-5663-4d5d-8a05-06f34b2b5f18/2b9696379f3c85cd5fa111b56badd431

    I notice that the slowdown is entirely on the client side browser since the source(view-source:http://convincingapps.com/) is served almost instantaneously and I see that you have taken care to enable caching.

    #14904
    rreben
    Member

    Meteorite, thanks a lot for your investigation in this issue!

    Interesting! I will look into this. How did you get this message (which tool did you use to get this information)?

    Looking at google’s page speed I get the message that there are java-scripts “below the fold” blocking rendering of the page. Something that fits to the behaviour, that the page seems to be blank for quite a while from the perspective of the user.

    Have you seen something like this before? And what to do about it?

    The message reads
    Entfernen Sie JavaScript, das das Rendering blockiert (meaning the following javaScript is blocking the rendering of the content “above the fold”):
    http://convincingapps.com/…-includes/js/jquery/jquery.js?ver=1.11.2
    http://convincingapps.com/…s/jquery/jquery-migrate.min.js?ver=1.2.1
    http://convincingapps.com/…v/js/libs/jquery.easing.1.3.js?ver=4.2.2
    http://178.63.195.2/…ent/themes/appdev/js/menu_patch_hover.js
    Optimieren Sie die CSS-Darstellung für die folgenden URLs (means: optimize CSS for the following URLs):
    http://convincingapps.com/…wp/assets/css/checkbox.min.css?ver=2.3.4
    http://convincingapps.com/…mes/appdev/css/prettyPhoto.css?ver=4.2.2
    (… cut here fore brevety)

    status of the investigation: Two hot leads – a) timeout to old server, b) render blocking JS
    server, hosting, database, etc. are not the root cause. My assumption (and believe) that this is a spontaneous issue, can no longer regarded to be valid. I keep you posted.

    #14906
    Raghavendra
    Moderator

    I just use the Chrome Dev Tools (View->Developer->Developer tools).

    Regarding the blocking JS, you need to get rid of that script menu_patch_hover.js. I am not sure from where it is coming from since it is not part of the theme itself.

    #14939
    rreben
    Member

    Hello meteorite, you solved problem! Thank you so much.

    What happened: There was a change done on JS. Not done in child theme (bad) and with a hard coded ip (even worse). Anyhow this was pointing to an old server. It passed tests, because the script was pulled from the old server unnoticed and everything worked.

    Then the old server had been decommissioned and we observed the bad loading times. For analysis we started with profiling tools, which (interestingly) did not point us directly to this problem.

    Lessons learned: Do an integrity check for the theme versus child theme as part of testing. Always look at the developer tools of the browser (chrome or safari).

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Theme suddenly slow waiting for fonts.gstatic.com’ is closed to new replies.