Skip to main content

How to optimize Memberstack loading times without hurting SEO performance?

Hey folks, anyone here know Memberstack + SEO? I'm asking because we are seeing almost 60% increases in page speed loading times because of the header code. Unfortunately, we don't have the option of only loading the header code on certain pages, but I'd love some advise / thoughts on this.

  • Is there a way we can optimize it, or delay it?
  • Alternatively, can we only load it for loggin users? That would solve our problem.

5 comments

  • Shadi null
    Shadi null

    Hmmm odd, my test from last week was 350ms (screenshot 1)
    whereas the current test (second screenshot) seems to indeed be slower

     

    0
  • Tyler Bell
    Tyler Bell

    Hey Jack, you can solve this by making the member stack script async.

    To do that you can just add a “async” tag to the script.

    Ah I see your message now Shadi.
    We will definitely take a look at this

    0
  • Jack Woodwalker
    Jack Woodwalker OP

    Ahh I added the tag and it made a huge difference! Thanks Tyler

    0
  • Shadi null
    Shadi null

    Tyler Bell It may be worth pointing out that my tests don't seem to show consistent results, it may have just been an anomaly as now a new test has returned a speed of 410ms.

    Jack Woodwalker I would recommend you thoroughly test all parts of your site now that you are running async as any other scripts that are waiting for a memberstack response may throw errors. I had this happen with custom Javascript that was looking for the members ID and the members plan when the page loaded, but the header didn't load in yet. Granted, this should only really be of concern if you have your own JS that queries memberstack

    0
  • Jack Woodwalker
    Jack Woodwalker OP

    Ya I appreciate that note. Not a issue for us now, but might be in the future!

    0

Please sign in to leave a comment.

Sitemap