Author Topic: Duplicate js call  (Read 2142 times)

spiros

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • Greek Translation
Duplicate js call
« on: April 02, 2020, 06:18:42 am »
I can see on this site mobile theme the following
Code: [Select]
<script type="text/javascript" src="https://smfmobile.com/community/Themes/smf4mobile-1/scripts/compiled.js?version=2.0_1540753064"></script>
<script type="text/javascript" src="https://smfmobile.com/community/Themes/smf4mobile-1/scripts/script.js?version=2.0_1540753064"></script>

Isn't it possible to have them merged as it was in earlier versions?

vbgamer45

  • Administrator
  • *****
  • Posts: 217
  • Karma: 3
Re: Duplicate js call
« Reply #1 on: April 02, 2020, 06:35:06 am »
They are two different scripts.
I believe there there is a reason as to why they are separate.

jhonalbert

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Duplicate js call
« Reply #2 on: December 23, 2021, 06:31:45 am »
$(document).ready(function () {
     ViewProduct(action_name);
 });