Author Topic: defered vmprices.js  (Read 932 times)

MKI-Miro

  • Jr. Member
  • **
  • Posts: 161
defered vmprices.js
« on: October 28, 2018, 13:28:10 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9031
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: defered vmprices.js
« Reply #1 on: October 28, 2018, 14:30:33 pm »
somewhere in administrator\components\com_virtuemart\helpers\vmjsapi.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MKI-Miro

  • Jr. Member
  • **
  • Posts: 161
Re: defered vmprices.js
« Reply #2 on: October 28, 2018, 16:53:10 pm »
but that will replace with each new version ....

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9031
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: defered vmprices.js
« Reply #3 on: October 28, 2018, 16:57:04 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation