Using Global Javascript Assets
From Spiffy Stores Knowledge Base
A number of Javascript frameworks and components have been installed on the Spiffy Stores servers and are available for use in the store themes.
These software components are maintained and kept up to date for you, so that you don't need to include them in your theme.
All components can be accessed from your theme using the liquid tag
global_asset_url(input)
Contents
Prototype
Prototype is a JavaScript Framework that aims to ease development of dynamic web applications.
Featuring a unique, easy-to-use toolkit for class-driven development and the nicest Ajax library around, Prototype is quickly becoming the codebase of choice for web application developers everywhere.
Further documentation is available from the Moo Tools website at http://www.prototypejs.org/
Current version: 1.7
{{ 'prototype.js' | global_asset_url | script_tag }}
Scriptaculous
Moo Tools
Moo Tools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.
Further documentation is available from the Moo Tools website at http://mootools.net/
Current version: 1.2.4 (Soon to be updated to 1.3)
{{ 'mootools.js' | global_asset_url | script_tag }}
jQuery
The jQuery framework is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.
Further documentation is available from the jQuery website at http://jquery.com/
Current version: 1.4.4
{{ 'jquery.js' | global_asset_url | script_tag }}