1 | <?php |
---|
2 | |
---|
3 | namespace LiteSpeed; |
---|
4 | |
---|
5 | defined('WPINC') || exit; |
---|
6 | ?> |
---|
7 | |
---|
8 | <h3 class="litespeed-title-short"> |
---|
9 | <?php echo __('HTML Settings', 'litespeed-cache'); ?> |
---|
10 | <?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/pageopt/#html-settings-tab'); ?> |
---|
11 | </h3> |
---|
12 | |
---|
13 | <table class="wp-list-table striped litespeed-table"> |
---|
14 | <tbody> |
---|
15 | <tr> |
---|
16 | <th> |
---|
17 | <?php $id = Base::O_OPTM_HTML_MIN; ?> |
---|
18 | <?php $this->title($id); ?> |
---|
19 | </th> |
---|
20 | <td> |
---|
21 | <?php $this->build_switch($id); ?> |
---|
22 | <div class="litespeed-desc"> |
---|
23 | <?php echo __('Minify HTML content.', 'litespeed-cache'); ?> |
---|
24 | </div> |
---|
25 | �� </td> |
---|
26 | </tr> |
---|
27 | |
---|
28 | <tr> |
---|
29 | <th> |
---|
30 | <?php $id = Base::O_OPTM_DNS_PREFETCH; ?> |
---|
31 | <?php $this->title($id); ?> |
---|
32 | </th> |
---|
33 | <td> |
---|
34 | <?php $this->build_textarea($id); ?> |
---|
35 | <div class="litespeed-desc"> |
---|
36 | <?php echo __('Prefetching DNS can reduce latency for visitors.', 'litespeed-cache'); ?> |
---|
37 | <?php echo __('For example', 'litespeed-cache'); ?>: <code>//www.example.com</code> |
---|
38 | <?php Doc::one_per_line(); ?> |
---|
39 | <?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/pageopt/#dns-prefetch'); ?> |
---|
40 | </div> |
---|
41 | </td> |
---|
42 | </tr> |
---|
43 | |
---|
44 | <tr> |
---|
45 | <th> |
---|
46 | <?php $id = Base::O_OPTM_DNS_PREFETCH_CTRL; ?> |
---|
47 | <?php $this->title($id); ?> |
---|
48 | </th> |
---|
49 | <td> |
---|
50 | <?php $this->build_switch($id); ?> |
---|
51 | <div class="litespeed-desc"> |
---|
52 | <?php echo __('Automatically enable DNS prefetching for all URLs in the document, including images, CSS, JavaScript, and so forth.', 'litespeed-cache'); ?> |
---|
53 | <?php echo __('This can improve the page loading speed.', 'litespeed-cache'); ?> |
---|
54 | <?php Doc::learn_more('https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control'); ?> |
---|
55 | </div> |
---|
56 | </td> |
---|
57 | </tr> |
---|
58 | |
---|
59 | <tr> |
---|
60 | <th> |
---|
61 | <?php $id = Base::O_OPTM_DNS_PRECONNECT; ?> |
---|
62 | <?php $this->title($id); ?> |
---|
63 | </th> |
---|
64 | <td> |
---|
65 | <?php $this->build_textarea($id); ?> |
---|
66 | <div class="litespeed-desc"> |
---|
67 | <?php echo __('Preconnecting speeds up future loads from a given origin.', 'litespeed-cache'); ?> |
---|
68 | <?php echo __('For example', 'litespeed-cache'); ?>: <code>https://example.com</code> |
---|
69 | <?php Doc::one_per_line(); ?> |
---|
70 | <?php Doc::learn_more('https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preconnect'); ?> |
---|
71 | </div> |
---|
72 | </td> |
---|
73 | </tr> |
---|
74 | |
---|
75 | <tr> |
---|
76 | <th> |
---|
77 | <?php $id = Base::O_OPTM_HTML_LAZY; ?> |
---|
78 | <?php $this->title($id); ?> |
---|
79 | </th> |
---|
80 | <td> |
---|
81 | <?php $this->build_textarea($id); ?> |
---|
82 | <div class="litespeed-desc"> |
---|
83 | <?php echo __('Delay rendering off-screen HTML elements by its selector.', 'litespeed-cache'); ?> |
---|
84 | <?php Doc::one_per_line(); ?> |
---|
85 | <?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/pageopt/#html-lazyload-selectors'); ?> |
---|
86 | </div> |
---|
87 | </td> |
---|
88 | </tr> |
---|
89 | |
---|
90 | <tr> |
---|
91 | <th> |
---|
92 | <?php $id = Base::O_OPTM_QS_RM; ?> |
---|
93 | <?php $this->title($id); ?> |
---|
94 | </th> |
---|
95 | <td> |
---|
96 | <?php $this->build_switch($id); ?> |
---|
97 | <div class="litespeed-desc"> |
---|
98 | <?php echo __('Remove query strings from internal static resources.', 'litespeed-cache'); ?> |
---|
99 | <br /> |
---|
100 | <font class="litespeed-warning"> |
---|
101 | ⚠️ |
---|
102 | <?php echo __('Google reCAPTCHA will be bypassed automatically.', 'litespeed-cache'); ?> |
---|
103 | </font> |
---|
104 | <br /> |
---|
105 | <font class="litespeed-success"> |
---|
106 | <?php echo __('API', 'litespeed-cache'); ?>: |
---|
107 | <?php echo sprintf(__('Append query string %s to the resources to bypass this action.', 'litespeed-cache'), '<code>&_litespeed_rm_qs=0</code>'); ?> |
---|
108 | </font> |
---|
109 | </div> |
---|
110 | </td> |
---|
111 | </tr> |
---|
112 | |
---|
113 | <tr> |
---|
114 | <th> |
---|
115 | <?php $id = Base::O_OPTM_GGFONTS_ASYNC; ?> |
---|
116 | <?php $this->title($id); ?> |
---|
117 | </th> |
---|
118 | <td> |
---|
119 | <?php $this->build_switch($id); ?> |
---|
120 | <div class="litespeed-desc"> |
---|
121 | <?php echo __('Use Web Font Loader library to load Google Fonts asynchronously while leaving other CSS intact.', 'litespeed-cache'); ?> |
---|
122 | <?php echo __('This will also add a preconnect to Google Fonts to establish a connection earlier.', 'litespeed-cache'); ?> |
---|
123 | <?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/pageopt/#load-google-fonts-asynchronously'); ?> |
---|
124 | </div> |
---|
125 | </td> |
---|
126 | </tr> |
---|
127 | |
---|
128 | <tr> |
---|
129 | <th> |
---|
130 | <?php $id = Base::O_OPTM_GGFONTS_RM; ?> |
---|
131 | <?php $this->title($id); ?> |
---|
132 | </th> |
---|
133 | <td> |
---|
134 | <?php $this->build_switch($id); ?> |
---|
135 | <div class="litespeed-desc"> |
---|
136 | <?php echo __('Prevent Google Fonts from loading on all pages.', 'litespeed-cache'); ?> |
---|
137 | </div> |
---|
138 | </td> |
---|
139 | </tr> |
---|
140 | |
---|
141 | <tr> |
---|
142 | <th> |
---|
143 | <?php $id = Base::O_OPTM_EMOJI_RM; ?> |
---|
144 | <?php $this->title($id); ?> |
---|
145 | </th> |
---|
146 | <td> |
---|
147 | <?php $this->build_switch($id); ?> |
---|
148 | <div class="litespeed-desc"> |
---|
149 | <?php echo __('Stop loading WordPress.org emoji. Browser default emoji will be displayed instead.', 'litespeed-cache'); ?> |
---|
150 | <?php echo __('This can improve your speed score in services like Pingdom, GTmetrix and PageSpeed.', 'litespeed-cache'); ?> |
---|
151 | </div> |
---|
152 | </td> |
---|
153 | </tr> |
---|
154 | |
---|
155 | <tr> |
---|
156 | <th> |
---|
157 | <?php $id = Base::O_OPTM_NOSCRIPT_RM; ?> |
---|
158 | <?php $this->title($id); ?> |
---|
159 | </th> |
---|
160 | <td> |
---|
161 | <?php $this->build_switch($id); ?> |
---|
162 | <div class="litespeed-desc"> |
---|
163 | <?php echo sprintf(__('This option will remove all %s tags from HTML.', 'litespeed-cache'), '<code><noscript></code>'); ?> |
---|
164 | <?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/pageopt/#remove-noscript-tags'); ?> |
---|
165 | </div> |
---|
166 | </td> |
---|
167 | </tr> |
---|
168 | |
---|
169 | </tbody> |
---|
170 | </table> |
---|