Another way to improve the web performances is to set your web server to send
the files compressed with the commonly available gzip format.
391
Chapter 14: More Interactive Content with JavaScript
The code examples in this chapter have been tested with the following browsers:
Mozilla Firefox 2.0.0.6
Opera 9.23
Safari 3.0.3
Microsoft Internet Explorer versions 5.5, 6, and 7
The JavaScript Library
The haXe standard library contains a js package dedicated to the JavaScript environment. The package
includes type definitions to ease the communication between haXe and the hosting environment, usually
the web browser.
When the haXe compiler targets JavaScript the produced file always contains a base set of instructions.
That minimal piece of code is very light (about 13KB) and provides a solid base to build upon that
includes the following definitions: Std , IntIter , js.Boot , js.Lib , and some initialization calls. Other
definitions are added as far as they are referenced in the user code.
The Std class is discussed in Chapter 3 and in other chapters, and the IntIter is described in Chapter 4 ;
both are common classes available for every supported haXe target.
Pages:
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739