0
Welcome Guest! Login
0 items Join Now

custom js file loaded with parameters, why?

    • shenk's Avatar
    • shenk
    • Hero Rocketeer
    • Posts: 424
    • Thanks: 11

    custom js file loaded with parameters, why?

    Posted 9 years 9 months ago
    • I added a custom css/js atom to the default outline, for field 'file location', I input 'gantry-theme://js/ready.js'. On front end, this file is loaded but with a parameter:
      <script src="/amb/templates/rt_ambrosia/js/ready.js?559b1850" type="text/javascript"></script>

      What does this parameter do and why was it added? Will it affect my custom js?
    • DanG's Avatar
    • DanG
    • Preeminent Rocketeer
    • Posts: 36750
    • Thanks: 3229
    • Custom work done

    Re: custom js file loaded with parameters, why?

    Posted 9 years 9 months ago
    • shenk wrote:
      I added a custom css/js atom to the default outline, for field 'file location', I input 'gantry-theme://js/ready.js'. On front end, this file is loaded but with a parameter:
      <script src="/amb/templates/rt_ambrosia/js/ready.js?559b1850" type="text/javascript"></script>

      What does this parameter do and why was it added? Will it affect my custom js?

      No worries...that number is a ID# that is added to when the JS and CSS files are compiled. In your Admin -> Ambrosia-Default -> click the "Recompile CSS" button and you will see the ID# change for the new session.

Time to create page: 0.085 seconds