If you want to lazy-load shared/ assets, this is the way to go. If the asset is not in the <head> of your doc, then it won't get copied from shared/ into your app and thus won't be able to be loaded later.
*W I L S O N P A G E* Front-end Developer Firefox OS (Gaia) London Office Twitter: @wilsonpage IRC: wilsonpage On Thu, Nov 5, 2015 at 5:06 PM, Punam Dahiya <[email protected]> wrote: > Hi > > Is specifying lazy loaded resources in comments inside index.html so that > it gets packaged still a requirement for build process? > > https://github.com/mozilla-b2g/gaia/blob/master/apps/gallery/index.html#L17 > > I am no expert in build process and find it confusing that few lazy loaded > scripts (e.g. info.js) that are not commented inside index.html are still > getting copied to build_stage making me believe that now its redundant to > comment lazy loaded files in index.html. > > Below link ’See Build script for apps’ doesn’t say much about how we are > packaging lazy loaded files. > > > https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Developing_Gaia/Build_System_Primer#Build_script_for_apps > > Any insight on how we are handling and optimizing lazy loaded files in > Gaia build process is appreciated. > > Thanks > Punam > > _______________________________________________ > dev-fxos mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-fxos > >
_______________________________________________ dev-fxos mailing list [email protected] https://lists.mozilla.org/listinfo/dev-fxos

