24
8 Comments

Marketing tools are damaging your SEO. And how to fix it.

Loading in 3rd party scripts from marketing tools (e.g. Intercom) can really hit site performance, in particularly Google's Time to Interactive metric)

Came across an awesome fix, thanks to @davejeffery from ToDesktop 🙏

  1. First, load the page without any heavy scripts.
  2. Then wait for a scroll event
  3. Then wait a further second
  4. Then load in Intercom etc ...

“Time to Interactive” plummeted from 8.8s to 0.9s.

And since, Dave made this change ToDesktop's organic clicks and impressions have nearly tripled - Image

If you found this interesting you might wanna check out the full case study.

on August 27, 2019
  1. 8

    Oh wow, thanks for the mention Harry.

    I think performance is too low on the priority list when it comes to SEO. You can see great results with little effort. Here's a few more tips.

    Low effort, high reward:

    • Use the loading="lazy" attribute on images and videos where possible.
    • Minify your static assets: JS, CSS, SVG, HTML. Seems obvious but often overlooked.
    • Use a HTTP/2 CDN. Most CDNs support HTTP/2 by default now. Netlify is great (be aware that they are blocked in Russia right now though).

    Medium effort, medium reward:

    • Use srcset to always deliver the correct image size. Don't just deliver the high-resolution version.
    • You can use Lighthouse as a bot that audits pull requests automatically for you.
    • WebP has 80% support now and is usually ~30% lighter than PNG/JPEG. Use it and fallback to PNG/JPEG on unsupported browsers.
    1. 1

      I think loading ="lazy" is only supported by chrome so far, or am I wrong?

      1. 1

        Yes, well Chromium-based browsers to be exact. Opera and Microsoft Edge will have it very soon if they don't already. Chrome + Opera + Edge is a very substantial market segment.

    2. 1

      No problem Dave. Really really insightful comment. Thank you for sharing!

  2. 2

    This is a great trick. :)

    On the subject of performance, I think a lot of web developers get complacent because they are testing their sites over a fast connection. That hides a lot of issues.

    Try surfing the web on a bad 4G or 3G connection and you’ll quickly become painfully aware of how big the download size is for many of today’s websites. (Lots of data available at HTTP Archive if anyone is curious about trends: https://httparchive.org/ )

    Maybe ask yourself if you really need to add that extra script, or that huge image. :) It’s not free.

    1. 1

      Point very well made Peter! Definitely a bias, because we all have "fast internet connections".

  3. 2

    That is an excellent implementation. We saw really poor performance from installing Drift (multiple seconds load time, Google flagged a dependency as malware so de-indexed a site) as well as HotJar or other analytics plugins. Nuking these dropped our load time to under a second.

    1. 1

      Interesting stuff. Cheers Gil. That's such a huge error on Drifts part ngl.

      Could have snowballed into an absolute PR nightmare.

Trending on Indie Hackers
The hardest part isn't building anymore User Avatar 73 comments I sold $6,773 in 2 weeks, with almost no existing community. User Avatar 57 comments Ferguson is LIVE on ProductHunt today... so I audited their homepage first! User Avatar 38 comments Before you build another feature, use this workflow User Avatar 35 comments Built a local-first Amazon profit-by-SKU + QuickBooks/Xero journal tool. Looking for founding users. User Avatar 32 comments From Fractional CTO to Micro-SaaS: How 15 Unbilled Hours Inspired an AI Shield (And What the Data Says About V2) User Avatar 26 comments