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
From building client websites to launching my own SaaS — and why I stopped trusting GA4! User Avatar 38 comments I built a tool that turns CSV exports into shareable dashboards User Avatar 31 comments The “Open → Do → Close” rule changed how I build tools User Avatar 31 comments I lost €50K to non-paying clients... so I built an AI contract tool. Now at 300 users, 0 MRR. User Avatar 23 comments Everyone is Using AI for Vibe Coding, but What You Really Need is Vibe UX User Avatar 23 comments Learning Rails at 48: Three Weeks from Product Owner to Solo Founder User Avatar 19 comments