• Resolved Optimizing Matters

    (@optimizingmatters)


    I like the plugin, but was surprised by the fact that it enqueues a lot of files (both CSS & JS) even on pages where there’s no Knowledge Base being displayed. This is a serious problem from a performance point of view, can this be looked into?

    Additional questions: are there conditional tags (“is_knowlegdebase” or something similar) that can be used to identify all EPKB pages (KB homepage, KB category pages, KB articles, …)?

    kind regards,
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author echoplugins

    (@echoplugins)

    Hi Frank,

    Thank you for your inquiry.

    We are very careful with minimizing load of JS/CSS files and other WordPress resources. Currently there is only one CSS file (public-styles.min.css) and one JS file (public-scripts.min.js with epkb_vars) that is being loaded for the KB plugin on all pages.

    This is a new defect and we will include a fix in release planned for this week. Sorry about the issue and thanks for reporting it.

    If you see more than these two files on the front-end please contact us so that we can effectively investigate your problem further:
    https://www.echoknowledgebase.com/contact-us/

    In terms of conditional tags, we do not use any. Again contact us if you like to discuss this further.

    Thank you,
    Dennis

    Thread Starter Optimizing Matters

    (@optimizingmatters)

    Currently there is only one CSS file (public-styles.min.css) and one JS file (public-scripts.min.js with epkb_vars) that is being loaded for the KB plugin on all pages.

    well.. as per includes/system/scripts-registration.php you’re unconditionally loading those, but also wp-jquery-ui-dialog and allmost all of jquery-ui’s JS (i.e. array('jquery-ui-core', 'jquery-ui-dialog', 'jquery-effects-core', 'jquery-effects-bounce') as dependency for your own public scripts). I’d say that’s a pretty hefty impact to happen on all pages, no?

    In terms of conditional tags, we do not use any.

    Would be nice if you could add that to your roadmap ??

    frank

    Plugin Author echoplugins

    (@echoplugins)

    While some of these files are part of WordPress core you are correct that some are also included from the plugin as unnecessary files.

    We have fixed the issue and are testing it for the release.

    Please send us email with details about the conditional tags so we understand it better.

    Thank you,
    Dennis

    Thread Starter Optimizing Matters

    (@optimizingmatters)

    yes, the files are part of core, but they’re being added by EPKB as dependencies so I’m really looking forward to that fix @echoplugins ??

    I’ll contact you via your site for the conditional tag question!

    have a nice weekend,
    frank

    Plugin Author echoplugins

    (@echoplugins)

    We have released the fix.

    Thank you for contacting us about your feature request.

    Have a great weekend.

    Cheers,
    Dennis

    Thread Starter Optimizing Matters

    (@optimizingmatters)

    confirmed fixed Dennis, great job!
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘echo knowledge base enqueuing lots of files on all wordpress’ is closed to new replies.