Site logo

[Support request] Avoid an excessive DOM size

Home Forums Support [Support request] Avoid an excessive DOM size

Home Forums Support Avoid an excessive DOM size

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1776295
    Patricia

    Hi, I am having this problem on speed testing tools, do you know how can I fix it? Thanks:

    Avoid an excessive DOM size

    A large DOM will increase memory usage, cause longer style calculations, and produce costly layout reflows.

    STATISTIC ELEMENT VALUE
    Total DOM Elements 2,299

    Maximum DOM Depth
    <span class=”lwptoc_item_number”>. 19

    Maximum Child Elements

    319
    #1776298
    Patricia

    STATISTIC ELEMENT VALUE

    Total DOM Elements 2,299

    Maximum DOM Depth
    <span class=”lwptoc_item_number”> 19

    Maximum Child Elements

    319
    #1776299
    Patricia
    #1776437
    David
    Staff
    Customer Support

    Hi there,

    every single element you add to a posts content, from a single paragraph, to an image, a list etc all add to the DOM count. The only way to reduce that is to remove content from long posts/pages or break them into several pages. See Page Break Block:

    https://wordpress.com/support/wordpress-editor/blocks/page-break-block/

    The issue it poses is if you’re page uses a lot of CSS styles, commonly seen if using a Page Builder. Simple styles and layouts don’t pose a problem. It is however an indicator that you have a lot of content on a post.

    #1778591
    Patricia

    understood! Thank you very much! 🙂

    #1779402
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.