cancel
Showing results for 
Search instead for 
Did you mean: 

Reducing the Size of the BSP Page after Rendering.

Former Member
0 Kudos

Dear All,

We have developed BSP Page for Order Capture. In this Page we have nearly 38 line items. We are accessing this Page through Portal. But After saving as a .html file, we checked the size of that Page, its nearly coming 156KB. Can we reduce the size of that Page to nearly 50-100KB.?

If Yes..How do we.

Pl suggest Us.

Rgds

PRAdeep

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you concerned about the transmission size over the network (in which case compression will help). In this instance measuring the page size after a save isn't necessarily the size that will be transmitted over the network.

Or are you more concerned about the size because user's are saving the data offline? In that case there are other measures you can take.

Can you please describe the page and your needs a little futher.

Former Member
0 Kudos

Hi Thomas

Sorry for the late reply.

Through our BSP Page, user will enter the orders, and it will create sales order in R/3. In our BSP page, there is only one inputfiled for user input.

If u look at the rendered html page, size will be very huge..nearly 150kb. We need to reduce the size of that file(html).

We have not used any images also. but still its 156kB.

If the file size is heavy...then normally page will be very slow right?

Kindly suggest us.

Rgds

Pradeep

Answers (1)

Answers (1)

eddy_declercq
Active Contributor
0 Kudos

Hi,

You don't specify if you're using HTMLB or plain HTML.

Is there an issue in having larger files?

Eddy

Former Member
0 Kudos

Hi

We are using HTMLB. And we have used javascript for client side validations.

rgds

Pradeep

eddy_declercq
Active Contributor
0 Kudos

Hi,

HTMLB renders a bit larger files than plain HTML. It depends a bit on the things you want to do with it. If you don't want specific HTMLB featurs, you might want to switch to minimalistic HTML.

But you can setup compression on in the application.

There are two methods to achieve this. Select the properties of a BSP page and you can set the compression check box on in the tranmission options (nearly at the end).

Another way is to do this via ICM. For more info on that and considerations on the methods, pls check

/people/brian.mckellar/blog/2003/10/23/bsp-trouble-shooting-frequently-asked-short-questions

Eddy

Former Member
0 Kudos

Hi Eddy

I tried what u have suggested, but still the page size is same. Fortunatly when i was browsing, i found there are some other tools to compress the html pages...its really reduceses the page size nearly 80%. but how do i incorporate to the BSP page after or before rendering.

Help appreciated.

rgds

Pradeep

Former Member
0 Kudos

Hi Pradeep,

if you want to achieve lesser network traffic you can turn on compression of your BSP. There is a checkbox in the definition of the controller (in MVC).

If you set the checkbox to true the transferred pages will be gziped by the server and unzipped by the browser.

To check the differences you will have to do some network analysis with a sniffer like ethereal.

Something else you can do is let the WebAs cut all the CR/LF and unnecessary white spaces. This will reduce the actual file size.

Hope this helps...

Kind regards,

Alex