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
I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 140 comments “This contract looked normal - but could cost millions” User Avatar 54 comments 👉 The most expensive contract mistakes don’t feel risky User Avatar 41 comments The indie maker's dilemma: 2 months in, 700 downloads, and I'm stuck User Avatar 39 comments I spent weeks building a food decision tool instead of something useful User Avatar 28 comments I just launched a browser API built for AI agents and LLMs User Avatar 23 comments