Thanks for clarifying that we only need to comment lazy loaded files from
outside the app directory and yes we should document it. I will take it up
and have it documented in link below

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Developing_Gaia/Build_System_Primer#Build_script_for_apps


On Thu, Nov 5, 2015 at 10:20 AM, Marcus Cavanaugh <[email protected]> wrote:

> Is this documented somewhere? A comment in index.html describing the
> behavior would probably be as/more useful than a wiki link.
>
> On Thu, Nov 5, 2015 at 10:05 AM, Michael Henretty <[email protected]>
> wrote:
>
>>
>> On Thu, Nov 5, 2015 at 6:06 PM, Punam Dahiya <[email protected]> wrote:
>>
>>>
>>> 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.
>>
>>
>>
>> Yeah, as Wilson said, you only need the commented line in index.html if
>> the file you want to lazy load lives outside of your app directory. If the
>> file is inside, like info.js (apps/gallery/js/info.js), then you don't need
>> the comment and can simply lazy load that file. You're right, it does seem
>> a bit magical :/
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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

Reply via email to