function wp_head () wordpress

0

Ando in the task of optimizing the load of a site wordpress , I see that it has too many plugin that causes the header to make several calls to scripts and css , and from what I saw, that global call does the function wp_head(); is there any way to call only the scripts.js and only the estilos.css ? and additionally I would only like to load in the head a single script that is indispensable for the load.

Thanks in advance.

    
asked by ragnamex 21.11.2018 в 16:45
source

1 answer

0

The optimization of the site in a matter of load times can be solved with one or several layers of cache.

Now to further optimize your scripts you could use webpack.js (or similar) to encapsulate all your css's and js's in one only minified and call only those two files.

The problem is always going to be that if you install plugins , they will insert everything they need to work and this is already out of your control. Removing wp_head() is not recommended since you are removing all support from head of wp .

    
answered by 28.11.2018 в 18:02