• Resolved maybenot

    (@maybenot)


    Hi there,

    I want to double check whether I’ve done this correctly.

    Just for one ads block, I’m using HTML element. On general settings, Output buffering is enabled. Dynamic blocks are set to Client-side insert.

    And then, for this block only, I selected Server-side.

    Is this correct?

    One of your replies says “if you are using caching then you can’t use any server-side insertion.”

    So I’m a little confused. I’m using LiteSpeed Cache Plugin. And this is for AdSense.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Spacetime

    (@spacetime)

    Dynamic blocks mean content that dynamically changes (ad rotation, blocks based on client-side checks, etc.)
    https://adinserter.pro/documentation/plugin-settings#dynamic-blocks

    Insertion at HTML elements can be done client-side (via Javascript code) or server-side (when the page is generated, no pseudo selectors can be used).
    This has nothing to do with dynamic blocks or caching.
    https://adinserter.pro/documentation/insertion-before-inside-after-html-element

    Thread Starter maybenot

    (@maybenot)

    Thanks for your super fast response!

    It goes to show how confused I am. I read those pages which is why I chose server-side insertion for this HTML element as it says “server-side insertion is the best approach” with output buffering enabled.

    For the sake of my exceptionally thick brain, can you confirm my set up is correct? Or is it just a matter of preference as both are acceptable? Or perhaps one option gives better speed on Mobile over the other?

    It’s for AdSense only. HTML element is for featured image.

    Plugin Author Spacetime

    (@spacetime)

    It is just a matter of preference.

    Client-side insertion causes layout shift so try to use server-side insertion if possible.
    In both cases use the shortest and the simplest element selector(s).

    Thread Starter maybenot

    (@maybenot)

    Ah I see – thanks.

    So, on general settings, leave Output buffering Enabled as default. Change Dynamic Blocks to Server side (should work fine with LiteSpeed Cache?).

    No need to do anything for all the other “normal” blocks.

    For this HTML element block, enter “.featured-media image” and select insertion Server-side.

    Sounds about right?

    Plugin Author Spacetime

    (@spacetime)

    No, you should set Dynamic Blocks to Client-side insert.

    Other setting are ok.

    Thread Starter maybenot

    (@maybenot)

    Ha I knew it!

    So my initial set up was okay thanks to all your helpful documentation! Thanks again for double checking it for me.

    Left a review now. Have a good day ??

    Plugin Author Spacetime

    (@spacetime)

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘HTML element setting’ is closed to new replies.