Hi,

 I was a little concerned because this problem showed up as soon as I 
optimized the code and I felt that maybe something was getting broken by 
the optimization process. Thanks for your prompt and helpful reply. 

On Wednesday, September 30, 2015 at 9:59:52 AM UTC+5:30, Alon Zakai wrote:
>
> As the comment says, Firefox can't cache in *synchronous* scripts. Use an 
> async script tag, replace
>
> <script src="js/wavelib.js"></script>
>
> with
>
> <script async src="js/wavelib.js"></script>
>
> Up to date versions of emcc should give that when you tell it to emit 
> .html.
>
> Asynchronous scripts are better for other reasons too, as they do not 
> block page load, so it's worth using them wherever you can.
>
> On Tue, Sep 29, 2015 at 9:25 PM, Rafat <[email protected] <javascript:>> 
> wrote:
>
>> The O2 optimized build of my project is displaying an issue on Firefox 
>> build. 
>>
>> Successfully compiled asm.js code (total compilation time 44ms; unable to 
>>> cache asm.js in synchronous scripts; try loading asm.js via <script async> 
>>> or createElement('script')) 
>>
>>  
>>
>>
>> I tried Google search and it turns out that a previous version of Chrome 
>> also threw up the same issue on another project but I didn't find any 
>> solution. I have also tested the build on Chrome and  IE but they are not 
>> showing any problems.
>>
>> The test application is live on github at http://rafat.github.io/wavelib/
>>
>> The test library is build with -O2 and "-s --memory-init-file 0 " flags. 
>> I am also getting the same results for O1 build but the unoptimized build 
>> is working without any issues on all the browsers that I have tested on.  
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to