lesterchan / wp-pagenavi

Adds a more advanced paging navigation interface to your WordPress blog.
https://wordpress.org/plugins/wp-pagenavi/
134 stars 49 forks source link

Could pagenavi-css.css be limited to only on needed pages? #44

Open chrisblakley opened 8 years ago

chrisblakley commented 8 years ago

I know there is an option to disable the CSS but I'd prefer to use it, however for most projects I only need PageNavi on a few templates. Would it be possible to have wp-pagenavi dynamically enqueue the stylesheet only when wp_pagenavi() is called?

I'm just trying to squeeze every drop of optimization for my projects, and before I do any manual overrides I thought I'd ask.

lesterchan commented 8 years ago

Unlikely I will add it in, but feel free to send in a PR if you did it =)