Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Created html file, lines removal
Wed, Aug 31 2016 8:58 PMPermanent Link

Trinione

Is there a way to have the created HTML file only include the relevant components used by the application? It appears to add a bit of weight by included all.

I am seeing a lot of '<script type="application/json" data-ewbtype="ewbinterface" data-ewbname="...' lines in the file.
Thu, Sep 1 2016 4:25 AMPermanent Link

Matthew Jones

Trinione wrote:

> Is there a way to have the created HTML file only include the
> relevant components used by the application? It appears to add a bit
> of weight by included all.
>
> I am seeing a lot of '<script type="application/json"
> data-ewbtype="ewbinterface" data-ewbname="...' lines in the file.

I'd be surprised if that aspect was not very optimised. Tim put a lot
of effort into ensuring that no library code is output unless you
actually use it, so that it compiles down to the smallest possible size
(particularly when compression is on). The HTML file probably cannot
have compression directly, but the server and browser should be doing
compression for transmission.

--

Matthew Jones
Tue, Sep 6 2016 8:06 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Is there a way to have the created HTML file only include the relevant components used by the application? It appears to add a bit of weight by included all.

I am seeing a lot of '<script type="application/json" data-ewbtype="ewbinterface" data-ewbname="...' lines in the file. >>

If a unit is included in an application, then all control interface declarations in that unit are included in the emitted application.  So, the solution is to not include a unit if you don't need/want a particular control interface in the emitted application.

However, some of the units in the EWB component library could probably be broken up a bit, and that would help with some of the "extra" control interfaces that may show up due to the above.

Tim Young
Elevate Software
www.elevatesoft.com
Image