Hi
Im using views to load posts into a page.
Im using hidden link to check the performance.
Here I got 5 more requests, 3 js and 2 css.
wpv-pagination.css?ver=1.3.1
wpv-views-sorting.css?ver=3.8
wpv-pagination-embedded.js?ver=1.3.1
wpv-date-front-end-control.js?ver=1.3.1
views_front_end_utils.js?ver=1.3.1
(hidden link)
Is it possible to reduce the amount of requests?
Some files are very small (940bites, 1,7kb...)
Is it possible to load the files into a single one a bring it down to only a couple requests?
Also the code should be minified.
Minify and unify the code into a couple files can be done
for example with codekit, but how should I change the code
to call the correct file and also avoid loosing this modification
with every update?
regards
Hi edoardoL,
You are right, the JS and CSS files you mentioned above are required by Views, it is not possible to reduce the amount of requests
As you mentioned above each file is very small (940bites, 1,7kb…), and it is cached in user browser, will not effect on your webpage load speed.
Hallo Luoy
thank you for your answer.
Here I have a couple results with/without views.
There is nothing I can do to improve?
Also, in a page which loads posts,
does the number of posts I load
affects the number of requests?
Sorry, I don't think there is a workaround for it.
It is required for Views to load these js and CSS files in your site-wide, and they are cached in the users browser.
In second time, users do not need load these files from your webserver.
Here is a document about: Working with Caching Plugins
https://toolset.com/faq/working-with-caching-plugins/
Hope it help