• Resolved whdmiran

    (@whdmiran)


    Hi there
    I like plugin very much, it is one that works, I would just have a question: When I look at source, there is “extensive advertising” for plugin authors, which I can understand but there is too many “divs” like this:

    <div id=”wp-block-themeisle-blocks-advanced-columns-0c5031a3″
    <details class=”wp-block-themeisle-blocks-accordion-item”><summary class=”wp-block-themeisle-blocks-accordion-item__title”>

    Is this necessary? How does influence the performance of the page?

    I am no coder, but I am curious … Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter whdmiran

    (@whdmiran)

    PS. I noticed that everyone is doing – Elementor and all other plugins. Looks common practice

    Plugin Author Hardeep Asrani

    (@hardeepasrani)

    Hey @whdmiran,

    This is not advertising for plugin but we need to have unique prefixes the classes to avoid CSS/JS conflicts and you will find it a normal thing in all of the web.

    For new Blocks, we now use shorter prefixes, for example, just “wp-otter-” instead of “wp-block-themeisle-blocks” but it’s not possible to change it in the older blocks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Could code be cleaner?’ is closed to new replies.