• Resolved tomdkat

    (@tomdkat)


    Hi! Sometimes, when I test my site with GTMetrix, the Visitor Statistics JavaScript code takes a LONG time to run. I see the “wmcAction=wmcTrack…” entry taking as long as 11.31 seconds, in one instance. Is this due to the nature of how GTMetrix loads the site?

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Short answer: that’s not a GTMetrix issue. It’s a plugin one.

    Long answer:
    In fact, WPVS’s client side script (wsm_new.js) sends those information doing a HTTP POST query [or a GET action -in your case at least- where it asks for a dummy image, passing all the tracking args in its request].
    But the client then waits for the server’s answer… Even though it does nothing with its return (the image is 0b sized)!
    And this answer only comes after all the args have been treated by the server!

    In fact, the server should receive the request (/args) from the client, reply to the client immediatly (making their communication time quite short) and only then treat the information…

    Thread Starter tomdkat

    (@tomdkat)

    Thanks for the information, madmax4ever! I notice the processing time in gtmetrix will fluctuate. Sometimes it’s seconds and others, it’s milliseconds.

    Anyway, thanks for the info. ??

    Peace…

    Just to be precise when I say it’s a plugin issue: the plugin does a great job and maybe it could do even better (like I said, by making the server answer earlier to the client), but I clearly also depend ont your server capabilities and load.
    On my website, it take about 450ms.
    It seems to be nothing, but it augments by ONE THIRD my pages loading time…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about GTMetrix and Visitor Statistics’ is closed to new replies.