New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shared library for working with enqueued styles and scripts #62

bobbingwide opened this Issue Jan 11, 2017 · 1 comment


None yet
1 participant

bobbingwide commented Jan 11, 2017

The overall performance of a system is potentially improved by not actually repeating repetitive tasks.
oik-widget-cache was developed to cache the output of widgets, but it doesn't cater for
caching of widgets that enqueue scripts and styles

There are also times when the creation of output is deferred until later on in the processing, but we would like to display this information and/or return it to the client earlier than normal.

Proposed solution

  • Create a new shared library implementing a class called dependencies_cache
  • Implement methods that can be used by oik-widget-cache, oik's shortcode help. etc..
  • Change existing logic that used the incomplete functions (bw_save_scripts, bw_report_scripts) to use the shared library.
  • Develop some unit tests
  • Once available, revisit oik-widget-cache (issue 1) to add logic to use this functionality, if available.

@bobbingwide bobbingwide self-assigned this Jan 11, 2017

@bobbingwide bobbingwide added this to the oik v3.2.0 milestone Oct 20, 2017


This comment has been minimized.


bobbingwide commented Aug 26, 2018

The solution should respect the scheme being used to access the page.
See bobbingwide/oik-widget-cache#2

@bobbingwide bobbingwide removed this from the oik v3.2.2 milestone Aug 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment