Skip to content

Dynamic includes negatively impact page speed performance #852

@joepagan

Description

@joepagan

Feature Request

Hey Ben, we use static caching (cloudflare) on some sites with blitz and the admin bar plugin.

We use dynamic includes to inject the admin bar logic so it only shows for logged in users.

I'm aware that we cannot bypass cloudflare caching for logged in users with blitz, however, the dynamic include is loaded on page load and negatively impacts the network dependency tree by adding another request upon a page load:

Image

I want to know if you could perhaps implement some logic to only load the dynamic include when a user scrolls to it in their browser? Or give us the ability to do this ourselves?

Interested to know your thoughts, thanks

Plugin Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions