weDevsOfficial / wedocs-plugin

A documentation plugin for WordPress
https://wordpress.org/plugins/wedocs/
GNU General Public License v2.0
195 stars 93 forks source link

Only enqueue css/js when the current page loads WeDocs via the shortcode #93

Closed Asgaros closed 4 years ago

Asgaros commented 5 years ago

All required CSS and JavaScript files should only get enqueued when the current page loads an instance of WeDocs. The changes in this pull request ensures that file-requests for unnecessary resources are avoided by checking if the content of the current page contains the wedocs-shortcode.

tareq1988 commented 4 years ago

Sorry, the code has been refactored, so your pull request is no longer valid. Also, you forgot about the single docs here. I'm closing the PR for now.