Skip to content

Commit

Permalink
Update SpeedOptimizer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
magiccart committed Jun 16, 2021
1 parent 982521d commit 764570d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugin/SpeedOptimizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: nguyen
* @Date: 2020-02-12 14:01:01
* @Last Modified by: Alex Dong
* @Last Modified time: 2021-05-14 12:11:50
* @Last Modified time: 2021-06-16 15:12:06
*/

namespace Magepow\SpeedOptimizer\Plugin;
Expand Down Expand Up @@ -390,8 +390,8 @@ public function addLoading($content)
$favicon = $staticUrl . '/favicon.ico';

// $preload .= '<link rel="preload" type="text/json" crossorigin="anonymous" href="' . $jsTranslation . '"></>';
$preload .= '<link rel="preload" as="icon" crossorigin="anonymous" href="' . $placeholder . '"></>';
$preload .= '<link rel="preload" as="icon" crossorigin="anonymous" href="' . $favicon . '"></>';
// $preload .= '<link rel="preload" as="icon" crossorigin="anonymous" href="' . $placeholder . '"></>';
// $preload .= '<link rel="preload" as="icon" crossorigin="anonymous" href="' . $favicon . '"></>';
$loadingBody = $this->helper->getConfigModule('general/loading_body_placeholder');

$loadingBody = $loadingBody ? $mediaUrl . 'magepow/speedoptimizer/' . $loadingBody : $placeholder;
Expand Down

0 comments on commit 764570d

Please sign in to comment.