Ah, I see now. The script loads on every user-facing page because there is ability to embed the widget straight into the content of a post or page using the <form> notation. Since it’s expensive to parse every page for the <form> tag I opted out to load the script and CSS on every page just in case.
To help in your situation, you’ll need to edit file wp-content/plugins/tweet-blender/tweet-blender.php and change this code on line 194:
function tb_load_js() {
$dependencies = array('jquery');
$tb_o = get_option('tweet-blender');
// load PHPDate only if have a custom date
if ($tb_o['general_timestamp_format'] != '') {
wp_enqueue_script('phpdate', '/' . PLUGINDIR . '/tweet-blender/js/jquery.phpdate.js', array('jquery'));
$dependencies[] = 'phpdate';
}
// load JSON plugin only if caching is enabled
if ($tb_o['advanced_disable_cache'] != 'on') {
wp_enqueue_script('tojson', '/' . PLUGINDIR . '/tweet-blender/js/jquery.json-2.2.min.js', array('jquery'));
$dependencies[] = 'tojson';
}
// load main JS code
wp_enqueue_script('tbmain', '/' . PLUGINDIR . '/tweet-blender/js/main.min.js', $dependencies);
}
to something like this:
function tb_load_js() {
if ($post->ID != XXXX) {
return;
}
$dependencies = array('jquery');
$tb_o = get_option('tweet-blender');
// load PHPDate only if have a custom date
if ($tb_o['general_timestamp_format'] != '') {
wp_enqueue_script('phpdate', '/' . PLUGINDIR . '/tweet-blender/js/jquery.phpdate.js', array('jquery'));
$dependencies[] = 'phpdate';
}
// load JSON plugin only if caching is enabled
if ($tb_o['advanced_disable_cache'] != 'on') {
wp_enqueue_script('tojson', '/' . PLUGINDIR . '/tweet-blender/js/jquery.json-2.2.min.js', array('jquery'));
$dependencies[] = 'tojson';
}
// load main JS code
wp_enqueue_script('tbmain', '/' . PLUGINDIR . '/tweet-blender/js/main.min.js', $dependencies);
}