V
V
Vadim Sverdlik2020-11-13 02:30:22
Mathematics
Vadim Sverdlik, 2020-11-13 02:30:22

Set up keyword preloading why doesn't it work?

5fadc5339c848290623296.png

I have the Swap Google Fonts Display plugin and added

add_filter( 'generate_google_font_display', function() {
return 'swap';
} ) to functions.php ;

add_action( 'wp_enqueue_scripts','tu_remove_google_fonts', 10 );
function tu_remove_google_fonts() {
wp_dequeue_style( 'generate-fonts' );
}

nothing helps, how to fix the error?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
R
riot26, 2016-08-03
@dQw4w9WgXcQ

Any student who knows how to link 2 lines in php knows that promo codes should be generated not according to some algorithm, but randomly and kept in the database. And in Yandex, schoolchildren are far from sitting.

G
GavriKos, 2016-08-03
@GavriKos

If you need to calculate exactly the algorithm when only its results are from the input data, then the easiest way is to check this by enumeration of known algorithms. From the banal random to anything.
But in this case, it's useless. Because even if the promo code is correct, it can simply be activated - i.e. there is no way to check the validity of the generated promotional code for sure.

V
Vladimir Martyanov, 2016-08-03
@vilgeforce

Theoretically, the problem can be solved. In practice - rather not, given that there are countless generation algorithms.

V
Vlad Timofeev, 2016-08-04
@timadevelop

In my opinion, if you want to know what algorithm they use, then it would be ideal to get a job at Yandex.Taxi, get access to the source code and enjoy the found code fragment) And listen to riot26

M
Maxim Rudenko, 2021-04-26
@searchency

You need to manually add preload keys for the resources shown in PageSpeed. For example,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question