Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Essential JS #115

Closed
timoburmeister opened this issue Sep 16, 2014 · 2 comments
Closed

Essential JS #115

timoburmeister opened this issue Sep 16, 2014 · 2 comments

Comments

@timoburmeister
Copy link

Hi Ole,

thanks again for your great starter theme! Most of my projects rely on you ;)

so here's a question hunting me ever since...which files in the js folder are essential for the theme to run? I manually sync the files from the theme folder to the dev server and everytime I'm not entirely sure which JS files to sync. Avoiding waste is one of my principles ;)

thanks for a short answer!

bye
timo

@manwithacat
Copy link
Contributor

I had a similar requirement on this one.

Have a look at Zurb's Documentation If you're not using components marked JS then you don't need any javascript files [essentially just the grid layout, media queries, panels and buttons]

If you're using components with javascript behaviours, then you need jQuery, Modernizr, and the Foundation JS files. Plus you also need to initialise Foundation. The last two bits are concatenated together by Grunt to create js/app.js. The source files for that concatenation are:

js/foundation/js/foundation.min.js'
js/init-foundation.js'

If you want to really cut it down, you can also use just the javascript for the components you need. See Zurb's docs for more information on that.

@olefredrik
Copy link
Owner

What @jmbarlow said :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants