Support » Plugin: PublishPress: Editorial Calendar, Workflow, Comments, Notifications and Statuses » PublishPress CSS is loaded on user-facing pages

  • Resolved ChrisBAshton

    (@chrisbashton)


    Hello – thanks for making this plugin, I find the Calendar view extremely useful!

    Please could you look at this issue?

    All of the following PublishPress CSS appears to be being pulled in on user-facing pages:

    publishpress/common/css/remodal.css
    publishpress/common/css/remodal-default-theme.css
    publishpress/common/css/pressshack-admin.css
    publishpress/common/css/publishpress-admin.css

    This means extra download bloat (~17Kb) and HTTP requests (4) for users, and the potential to cause stylistic side-effects if any of the CSS isn’t namespaced properly. These external CSS requests also invalidate AMP pages, which is the main reason why I’ll have to disable this plugin until this is addressed.

    The CSS should only be downloaded on the PublishPress admin pages where the styling will actually be applied. This should be achievable by using the WordPress hooks (such as wp_enqueue_style).

    Many thanks,

    Chris

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PublishPress CSS is loaded on user-facing pages’ is closed to new replies.