Changeset 3483523
- Timestamp:
- 03/16/2026 07:38:44 AM (12 days ago)
- Location:
- blinkspeed/trunk
- Files:
-
- 4 edited
-
blinkspeed.php (modified) (2 diffs)
-
includes/Core.php (modified) (4 diffs)
-
languages/blinkspeed.pot (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blinkspeed/trunk/blinkspeed.php
r3481926 r3483523 3 3 * Plugin Name: BlinkSpeed 4 4 * Description: Boost your WordPress site speed with advanced AI optimization techniques. Improve Core Web Vitals, achieve higher scores on Google PageSpeed Insights and GTmetrix, and deliver a faster, smoother browsing experience for your visitors. 5 * Version: 1.0. 55 * Version: 1.0.6 6 6 * Author: BlinkSpeed 7 7 * Author URI: https://blinkspeed.ai/ … … 24 24 25 25 // Define plugin constants 26 define( 'BLINKSPEED_VERSION', '1.0. 5' );26 define( 'BLINKSPEED_VERSION', '1.0.6' ); 27 27 define( 'BLINKSPEED_FILE', __FILE__ ); 28 28 define( 'BLINKSPEED_DIR', plugin_dir_path( __FILE__ ) ); -
blinkspeed/trunk/includes/Core.php
r3481955 r3483523 817 817 // Preload font files 818 818 if (in_array(strtolower($extension), array('otf', 'ttf', 'woff', 'woff2', 'gtf', 'mmm', 'pea', 'tpf', 'ttc', 'wtf'))) { 819 $preload_html .= '<link rel="preload" href="' . trim($link) . '" as="font" type="font/' . $extension . '" crossorigin fetchpriority="high">';819 // $preload_html .= '<link rel="preload" href="' . trim($link) . '" as="font" type="font/' . $extension . '" crossorigin fetchpriority="high">'; 820 820 } 821 821 … … 3171 3171 $message .= " Critical CSS optimization in progress - Enqueue pending,"; 3172 3172 } 3173 }elseif(!empty($urlsArray['second'])){3174 $criticalUrl = $urlsArray['second'];3175 $response = $this->blinkspeed_remote_request_blocking($criticalUrl);3176 if(!empty($response)){3177 list($status,$newMessage) = $this->blinkspeed_check_critical_css_response($response,$message,[],'', $criticalUrlPath);3178 $message .= $newMessage;3179 }else{3180 $this->blinkspeed_delete_file($criticalUrlPath);3181 }3182 3173 } 3183 3174 } … … 3197 3188 $data = json_decode($response, true); 3198 3189 if($data && !empty($data['processing']) && $data['processing'] == 'process-enqueued'){ 3199 unset($options['html']);3200 $criticalUrl['second'] = $blinkSpeedApiUrl . '?' . http_build_query($options);3201 $this->blinkspeed_create_file($criticalUrlPath, $this->blinkspeed_json_encode($criticalUrl));3202 3190 $status = 201; 3203 3191 $message .= " Critical CSS optimization in progress - Enqueued,"; 3204 } elseif($data && !empty($data['urls']) && is_array($data['urls']) && !empty($data['auth'])){3192 } elseif($data && !empty($data['urls']) && is_array($data['urls']) && !empty($data['auth'])){ 3205 3193 $this->blinkspeed_save_assets_on_server($data['urls'], $data['auth']); 3206 3194 $status = 201; 3207 3195 $message .= " Critical CSS optimization in progress,"; 3208 } elseif($data && !empty($data['w3_css']) && !empty($data['path']) && !empty($data['filename'])){3196 } elseif($data && !empty($data['w3_css']) && !empty($data['path']) && !empty($data['filename'])){ 3209 3197 $status = 200; 3210 3198 $message .= "Critical CSS optimization completed"; … … 3839 3827 $data = []; 3840 3828 $data['url'] = $url; 3841 $ext = pathinfo($ newPath, PATHINFO_EXTENSION);3829 $ext = pathinfo($cssPath, PATHINFO_EXTENSION); 3842 3830 $data['content'] = ($ext === 'css') ? $content : base64_encode($content); 3843 3831 $cssData[] = $data; -
blinkspeed/trunk/languages/blinkspeed.pot
r3481926 r3483523 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: BlinkSpeed 1.0. 5\n"5 "Project-Id-Version: BlinkSpeed 1.0.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/blinkspeed/\n" 7 7 "POT-Creation-Date: 2026-02-04 00:00+0000\n" -
blinkspeed/trunk/readme.txt
r3482022 r3483523 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 346 346 = 1.0.5 = 347 347 Initial stable release of BlinkSpeed optimization plugin. 348 349 = 1.0.6 = 350 351 * Minor Bug Fixes
Note: See TracChangeset
for help on using the changeset viewer.