News:

Looking for documentation? Take a look on our wiki

Main Menu

jquery + scripts at the bottom (pagespeed)

Started by EvanGR, September 23, 2014, 01:04:44 AM

Previous topic - Next topic

EvanGR

Has anyone managed to optimize a virtuemart site for speed, by moving the scripts at the bottom of the page?

I've done similar optimizations for Joomla websites, but it doesn't seem easy (or possible?) for Virtuemart. e.g. There are inline scripts added in the head which almost certainly require jquery and some VM js files to be loaded.

It would be great if all scripts could be deferred/asynced or simply be placed at the bottom for faster page loading and user experience.

jenkinhill

This is being considered by the developers for VM3 or later, but I believe this can cause problems with AJAX which VM makes extensive use of.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

also apart from the jquery library itself which should cache  the vmprices.js etc are tiny
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

EvanGR

I suspect that it should be technically possible to have all scripts load later, and still have full AJAX functionality (it just needs to be coded appropriately). Good to know it's been considered for VM3!


MKI-Miro