Blog view enables views ajax for pagerless blocks
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3553276. --> Reported by: [catch](https://www.drupal.org/user/35733) Related to !664 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Checking page weight for the front page of Byte, I noticed that the views.ajax library is loaded on the anonymous front page.</p> <p>This is because the 'blog' view enables 'use_ajax' globally, instead of only for the blog listing itself. The two blocks don't appear to have any kind of exposed filters or pager, so they don't need AJAX.</p> <p>I tried to update the view but ran into a validation error on save (something about the tags filter not having any valid values) and then after removing that filter to get past it and exporting the config, what looked like several other unrelated changes.</p> <p>If it wasn't for webform (the next issue I'm about to open), it looks like this change would also save loading jQuery in general, which would mean well over 100kb of JavaScript saved. But just configuring the views slightly differently will save loading the entire AJAX library by the looks of things which will still be tens of kb.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-data-model-changes">Configuration changes</h3> > Related issue: [Issue #3554686](https://www.drupal.org/node/3554686)
issue