Skip Navigation

[Gelöst] views: loading posts into pages (5 more request – how to minimize)

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created vor 10 Jahre, 3 Monate. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 Antworten, has 2 Stimmen.

Last updated by Oniromancer vor 10 Jahre, 3 Monate.

Assisted by: Luo Yang.

Author
Artikel
#182542

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

#182587

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.

#182740
Screen Shot 2014-01-03 at 3.18.43 PM.png
Screen Shot 2014-01-03 at 2.55.31 PM.png

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?

#183426

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

#185341

Thanks

Das Forum „Types Community Support“ ist für neue Themen und Antworten geschlossen.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.