Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require.config({
- baseUrl: './js/',
- paths: {
- 'jquery' : 'vendor/jquery',
- 'modernizr' : 'vendor/modernizr',
- 'enquire' : 'vendor/enquire',
- 'blazyfile' : 'vendor/blazy'
- },
- bundles: {
- 'vendor/primary' : ['jquery', 'blazybundled', 'utils']
- },
- shim: {
- 'jquery' : {
- exports: '$'
- },
- 'blazybundled' : {
- exports: 'Blazy'
- },
- 'blazyfile' : {
- exports: 'Blazy'
- },
- 'foundation' : {
- deps: ['jquery']
- }
- }
- });
- define([
- 'jquery',
- 'blazyfile',
- 'utils'
- ],
- function ($, Blazy, utils) {
- 'use strict';
- var bLazy = new Blazy({ offset: 500 });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement