# wp-optimize/4.7.0/templates/minify/preload-tab.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.7.0. 42 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/templates/minify/preload-tab.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.7.0/raw/templates/minify/preload-tab.php
- Modified: 2026-04-21T16:53:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/templates/minify/preload-tab.php#L10-L20`.

```php
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?>
<div class="wpo_section wpo_group">
	<form>
	<?php if ($is_cache_enabled) : ?>
		<div id="minify-preload" class="notice notice-warning wpo-warning below-h2 wpo-show">
			<p>
				<span class="dashicons dashicons-info"></span>
				<?php
					$message = esc_html__('You are using WP-Optimize for page caching.', 'wp-optimize');
					$message .= ' ';
					$message .= esc_html__('Because of that, the pre-load settings used for page-caching are used.', 'wp-optimize');
					$message .= ' ';
					// translators: %1$s is a opening anchor tag and %2$s is a closing anchor tag
					$message .= sprintf(esc_html__('i.e. To configure pre-loading, go to the %1$sCache Preload settings in the caching section%2$s instead.', 'wp-optimize'), '<a href="' . esc_url(admin_url('admin.php?page=wpo_cache&tab=wp_optimize_preload')) . '">', '</a>');
					echo wp_kses_post($message);
				?>
				<br>
			</p>
		</div>
	<?php endif; ?>
		<h3 class="wpo-first-child"><?php esc_html_e('Preload now', 'wp-optimize'); ?></h3>
		<div class="wpo-fieldgroup">
			<p>
				<input id="wp_optimize_run_minify_preload" 
					class="button button-primary" type="submit" 
					name="wp_optimize_run_minify_preload" 
					value="<?php echo $is_running ? esc_attr__('Cancel', 'wp-optimize') : esc_attr__('Run now', 'wp-optimize'); ?>" 
					<?php echo $is_running ? 'data-running="1"' : ''; ?>
					<?php echo $is_cache_enabled ? "disabled" : ""; ?>
				>
				<span id="wp_optimize_preload_minify_status"><?php
					echo esc_html($status_message);
				?></span>
			</p>
			<span>
				<?php esc_html_e('This action will trigger WP-Optimize to generate minify assets by visiting pages to preload them (so that they are ready the first time a human visitor wants them).', 'wp-optimize'); ?>
				<?php esc_html_e('If a sitemap is available, then it will be used to determine which assets get minified.', 'wp-optimize'); ?>
			</span>
		</div>
	</form>
</div>

```
