Title: Conditionally loading scripts /css
Last modified: August 31, 2016

---

# Conditionally loading scripts /css

 *  [Bryan Willis](https://wordpress.org/support/users/codecandid/)
 * (@codecandid)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/conditionally-loading-scripts-css/)
 * The plugin should conditionally load css and javascript based on the options 
   selected in the admin.
 * For example:
 * **Show in Home:Displays related post in the home? **_Off_
 * If this is turned off, the css/js should not load on the homepage. It also should
   not load on any post types that aren’t selected in the admin.
 * [https://wordpress.org/plugins/yuzo-related-post/](https://wordpress.org/plugins/yuzo-related-post/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [ilenstudio](https://wordpress.org/support/users/ilenstudio/)
 * (@ilenstudio)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/conditionally-loading-scripts-css/#post-7168260)
 * Hi , ok we will improve this option in the PRO version of the plugin, will soon
   be released
 *  Plugin Contributor [ilenstudio](https://wordpress.org/support/users/ilenstudio/)
 * (@ilenstudio)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/conditionally-loading-scripts-css/#post-7168338)
 * Hi, I was more carefully reviewing this request, there are people put Yuzo Widget
   to be displayed on the homepage, then would have to load the js and css to avoid
   problems.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Conditionally loading scripts /css’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/yuzo-related-post_42b0d1.svg)
 * [YUZO](https://wordpress.org/plugins/yuzo-related-post/)
 * [Support Threads](https://wordpress.org/support/plugin/yuzo-related-post/)
 * [Active Topics](https://wordpress.org/support/plugin/yuzo-related-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yuzo-related-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yuzo-related-post/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ilenstudio](https://wordpress.org/support/users/ilenstudio/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/conditionally-loading-scripts-css/#post-7168338)
 * Status: not resolved