kirpich1
Forum Replies Created
-
Forum: Plugins
In reply to: [Autoptimize] Preload optimized CSS inI have a project where it is used:
- link preload style.css
- link stelesheet style.css
The site opens faster visually to the visitor, because style.css has size 65 kb and i have link preload href=”font.woff2″ as=”font”. The page does not twitch when loading, fonts are displayed immediately. The page is displayed immediately without a pause. If I don’t use link rel=preload, everything is bad
Sorry for my english ??
@aurangajeb, hi, thanks.
I solved the problem. There were problems on the hosting.
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?@optimizingmatters, 3 April, 2016 y. I’m leaving the topic. A lot of work with SEO. Thanks for the plugin ??
@vaakash, useful information for users. I’m leaving the topic. Thanks for the plugin!
@vaakash, maybe add this to the problem solving in the main plugin forum?
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?@optimizingmatters, ok. But I wrote a 5-star review ~ in 2015 ??
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?@optimizingmatters, thank’s for answers! Good developer ??
Resolved
- This reply was modified 2 years, 2 months ago by kirpich1.
Resolved.
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?I understand that. But I haven’t updated your plugin since version 2.2.2 ?? I want to switch to PHP 8.1. That’s why I’ve made an update now.
that’s better then tweaking the code (as your tweaks could be overwritten with the next update(s)?How to add a filter to functions.php for all the strings I need? ??
Hello developer! ??
I found the reason for the translation problem.
I have the "Disable All WordPress Updates" plugin installed.
This plugin blocking updates of themes, plugins and language-files. Blocking download and updating of .mo language-files.
You also have incomplete lines of translation into Russian (ru_RU).
The plugin has been translated to 95% approximately.
Thanks for your great plugin.
And sorry for my bad english ??
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?Apologies for my poor English.
I tweaked the plugin code for myself.
Probably this will help you in development. The idea itself may be useful to you. And its implementation is very simple.
Thank you for the great plugin!
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?Some users do not enable HTML optimization. I don’t enable this function for some reasons ??
when “optimize HTML” is on (which is almost always the case) all linebreaks are removed anywayForum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?And also the W3C validator shows INFO message when i checking my site with HTML5.
Info messages are associated with the final slash in the link tags.
$this->inject_in_html( apply_filters( 'autoptimize_filter_css_bodyreplacementpayload', '<link ' . $type_css . 'media="' . $media . '" href="' . $url . '" rel="stylesheet" />' . PHP_EOL ), $replace_tag );
I mean this:
rel="stylesheet" /> <-- /
Forum: Plugins
In reply to: [Autoptimize] Compatible with PHP 8.0, 8.1?@optimizingmatters, thanks for the answer. I have updated the plugin.
Your plugin have small bugs in the old and new versions.
In this classes:
autoptimize/classes/autoptimizeScripts.php autoptimize/classes/autoptimizeStyles.php
The code inspector shows “script” next to “/body”. Visually bad
In this code on autoptimizeScripts.php:
$bodyreplacementpayload = '<script ' . $type_js . $defer . 'src="' . $this->url . '"></script>';
I see in inspector:
...some code... <script defer src="https://domain.ru/wp-content/cache/autoptimize/js/autoptimize_c8dd705d1d4aa47ee037557413d3b89b.js"></script></body>
I made the code like this (add PHP_EOL):
$bodyreplacementpayload = '<script ' . $type_js . $defer . 'src="' . $this->url . '"></script>' . PHP_EOL;
And i see:
...some code... <script defer src="https://domain.ru/wp-content/cache/autoptimize/js/autoptimize_c8dd705d1d4aa47ee037557413d3b89b.js"></script> </body>
This is also in autoptimizeStyles.php:
$this->inject_in_html( apply_filters( 'autoptimize_filter_css_bodyreplacementpayload', '<link ' . $type_css . 'media="' . $media . '" href="' . $url . '" rel="stylesheet">'), $replace_tag );
I made the code like this (add PHP_EOL):
$this->inject_in_html( apply_filters( 'autoptimize_filter_css_bodyreplacementpayload', '<link ' . $type_css . 'media="' . $media . '" href="' . $url . '" rel="stylesheet">' . PHP_EOL ), $replace_tag );
In the file autoptimizeStyles.php there are several lines at once where it would be useful to add PHP_EOL:
Line 1022 Line 1062 Line 1069 Line 1071
Sorry for my bad english ??
@vaakash, thank you. This very important for me ??