WordPress.org

Plugin Directory

!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Asset Manager

A wordpress plugin that deactivates individual or all wp plugin styles and scripts per page to decrease load time.

Arbitrary section

A brief Markdown Example

Add the following code to your themes header and footer

header.php

<?php
wp_reset_query();
global $post;
$styles_query = get_post_meta( $post->ID, '_active_styles', true );
$styles_array = unserialize($styles_query);
?>

<?php if (!empty($styles_array[0])) { foreach($styles_array as $style): ?>
<link rel="stylesheet" href="<?php echo $style; ?>">
<?php endforeach; } ?>

footer.php

<?php
wp_reset_query();
global $post;
$scripts_query = get_post_meta( $post->ID, '_active_scripts', true );
$scripts_array = unserialize($scripts_query);
?>

<?php if (!empty($scripts_array[0])) { foreach($scripts_array as $script): ?>
<script src="<?php echo $script; ?>"></script>
<?php endforeach; } ?>

Requires: 3.0.1 or higher
Compatible up to: 3.8.15
Last Updated: 2 years ago
Active Installs: 10+

Ratings

5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1
100,1,1 100,1,1
0,1,0