News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

defered vmprices.js

Started by MKI-Miro, October 28, 2018, 13:28:10 PM

Previous topic - Next topic

MKI-Miro

Hi

how to disable defering vmprices.js?

<script src="/components/com_virtuemart/assets/js/vmprices.js?vmver=83a9dc1b" type="text/javascript" defer="defer"></script>

jch optimizes does not optimize this when it is defered

Thanks

GJC Web Design

somewhere in administrator\components\com_virtuemart\helpers\vmjsapi.php
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

MKI-Miro

but that will replace with each new version ....

GJC Web Design

#3
of course...... but do u really think combining and minimising this tiny js file will have any measurable effect?
It is already "deferred" so doesn't affect the initial load .. 
optimisation can become a bit.... um..  whats the term for it..  ?   ;)
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