• Hi.
    I’ve added to my page ~50 blocks with h5p content.

    And each of this blocks enqueue the same scripts and styles for ~50 times.

    So instead of one “package” of scripts+styles I’ve got 50 times more of them.

    All blocks have similar content.

    Is there a way to reduce this huge amount of scripts and styles so they would load only once for a page.

    A small piece of requests is on screenshot
    https://prntscr.com/qc5o2u

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author icc0rz

    (@icc0rz)

    We will be looking into reducing the amount of css and js files loaded for each content. However, content types that rely on an iframe to be isolated from the rest of the theme will require to have at least 2 js and 2 css files loaded.
    Luckily, most of this is the same files so the browser should be caching this and not actually loading the same files ~50 times. Also, using HTTP2.0 will speed things up.

    Thread Starter ADvi

    (@advi)

    But mr.Google do not think so ??
    Google lowered my site in search results precisely on the pages where I use h5p content.
    Can you provide any solution with code to fix this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Similar Multiply scripts/styles for multiply embeds’ is closed to new replies.