Yet another post about wp_js_localization –with a possible solution?
-
<script type='text/javascript' src='https://www.newatlanticrealtygroup.com/wp-admin/admin-ajax.php?action=wpp_js_localization&ver=1.41.4'></script>
This call in the header of any website using the wp-property plugin is slowing down many websites.
What does it do and why is it necessary?
Can there be an option to remove it?The primary reason it slows down so many websites is that, since it is in the header, it blocks all other resources from downloading until it finishes (and it takes quite some time to process). This needs to be moved to the footer where it won’t block the page from loading, as devoting over a few hundred ms to a single resource is insane and this thing takes anywhere from 2-8 whole seconds. In the footer it will not block the page load. If it turns out it is necessary in order for the content of the page to load correctly, then a different approach to the problem that it solves is necessary as this is not efficient at all.
- The topic ‘Yet another post about wp_js_localization –with a possible solution?’ is closed to new replies.