T
T
twentytvvo2021-02-01 20:45:33
Client side optimization
twentytvvo, 2021-02-01 20:45:33

How to move this css and js to the footer?

60183dc0e9f1f412782706.jpeg
These are all js woo and wordpress styles that either cannot be disabled or are vital.
As far as you can see from the screenshot, they slow down the speed and slow down the rendering.
How can they be moved to the footer? Plugin? Are there any specific features?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2021-02-02
@Lord_Dantes

https://wp-kama.ru/function/wp_enqueue_style - for styles
https://wp-kama.ru/function/wp_enqueue_script - for scripts
In short, you connect files not through code, but through these functions. After reading the documentation, you can learn how to connect something to the footer, and something to the header.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question