+ Reply to Thread
Results 1 to 4 of 4

Thread: Can Quick Total script be linked rather than embedded?

  1. #1
    Client
    Join Date
    Nov 2007
    Posts
    55
    Squirrelcart version
    v3.0.0

    Can Quick Total script be linked rather than embedded?

    This is my 4th Squirrel Cart site, but the first where I've needed the Quick Total module.

    I'd prefer linking to the code rather than having it load as part of the page (SEO concerns re: all that script code before you get to any content)

    Is that possible?

    Thanks!

    Barb

  2. #2
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    5,697
    Squirrelcart version
    v3.2.1
    Hi Barb,

    We don't have any support for linking to an external JS file for that. We will be doing so in the future.
    Thanks,
    Jamie

    Please rate or review us!
    Hotscripts PHP Resource Index



    It's too bad that whole families have to be torn apart by something as simple as wild dogs. - Jack Handey

  3. #3
    Client coastalrugs's Avatar
    Join Date
    Dec 2007
    Posts
    163
    Squirrelcart version
    v3.2.0
    I know it has been quite some time, but I have been able to at least compress the JS dynamically using JSmin or Dean Edward's Packer (your choice).

    It is a change strictly within the store.php file. But does require a few server prerequisites to function correctly. Reductions have been about 30-40% on the inline <script> calls. It doesn;t remove the script to an external file, but at least shrinks its footprint before actual page content is encountered.

    All of my tests have come out positive as to it working correctly and completely. You can see the example of this at: www.coastalrugs.com/webstore/

    I opted for JSMin to avoid the eval() function. The individual <script> tags were left as discrete entities in case there was some code that relied on its specific order on the page.

    Leave a reply if you're interested and I will post the details.

  4. #4
    Squirrelcart Staff Jamie's Avatar
    Join Date
    May 2002
    Posts
    5,697
    Squirrelcart version
    v3.2.1
    FYI - Version 3 will have all storefront JS in external files.
    Thanks,
    Jamie

    Please rate or review us!
    Hotscripts PHP Resource Index



    It's too bad that whole families have to be torn apart by something as simple as wild dogs. - Jack Handey

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts