Thread: JS order

Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default JS order

    I need to call a particular js file to run before any other. I have tried on_load by following the guide: http://www.zen-cart.com/wiki/index.p...s_-_Javascript but have not been successful in getting the script to run first.

    Does anyone know how to force a script to run first? Thanks.

  2. #2
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Re: JS order

    Well I figured out the js loads alphanumerically from the template js folder, so it achieved what I wanted it to. However the generated source says js placed in the footer loads first. So just out of interest is there any way to force those to load in the same order along with those in the template/js folder?

  3. #3
    Join Date
    Sep 2008
    Posts
    210
    Plugin Contributions
    21

    Default Re: JS order

    Quote Originally Posted by jetx View Post
    Well I figured out the js loads alphanumerically from the template js folder, so it achieved what I wanted it to. However the generated source says js placed in the footer loads first. So just out of interest is there any way to force those to load in the same order along with those in the template/js folder?
    Please try to use css/js loader.
    Our Site: http://zucando.com
    Marketing Plugins: Marketing Modules
    Free Response Templates: Responsive Templates

  4. #4
    Join Date
    Apr 2006
    Posts
    413
    Plugin Contributions
    0

    Default Re: JS order

    Yes, good idea that, seems easy enough. Thanks.

  5. #5
    Join Date
    Mar 2011
    Location
    Pensacola, FL
    Posts
    88
    Plugin Contributions
    4

    Default Re: JS order

    I'm interested working with CSS JS loader also (WOW are there a lot of JS and CSS files loading) but on my server at least (linux/apache), the JS files load in alphabetical order so changing the name of one of the files so that it comes earlier or later in the alphabet is doing the trick.

 

 

Similar Threads

  1. v151 Order email advice second order showing zero follows actual order
    By shags38 in forum General Questions
    Replies: 5
    Last Post: 15 Apr 2015, 06:54 AM
  2. Replies: 1
    Last Post: 5 Jan 2011, 07:34 PM
  3. How do I Edit Order of Order Totals in Order Confirmation Email?
    By toussi in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Mar 2009, 08:05 AM
  4. My Order History and Order History Details - how do I get order comments in both?
    By trisha1581 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Nov 2007, 06:37 PM
  5. Orders- Update status of order, delete order or print order paperwork.
    By dandownunder in forum Managing Customers and Orders
    Replies: 6
    Last Post: 8 Aug 2006, 09:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR