Please or Register to create posts and topics.

PageSpeed friendly Style

Hi,

is it possible to load the CSS Stylesheet files only on pages with the forum shortcode on it?
Cause approximate 99% of my site doesn’t contain any forum, but the CSS files still block rendering and slow down the PageSpeed.

Maybe you can enqueue style via “wp_enqueue_style”, so i can write my own plugin to dequeue it on non-forum pages.

Marvin

sunnysims has reacted to this post.
sunnysims

Hello melvin,

I just fixed this in the development-version of the plugin. The change will be included in the upcoming v1.4 release.

You can find the changeset here:

https://github.com/Asgaros/asgaros-forum/commit/b7fb731a84f0ec7d25d86c00872245f9b8e671db

sunnysims has reacted to this post.
sunnysims
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!