You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jonathon Wong (JIRA)" <ji...@apache.org> on 2007/01/23 02:03:49 UTC

[jira] Commented: (OFBIZ-642) Make OFBiz more dial-up friendly

    [ https://issues.apache.org/jira/browse/OFBIZ-642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466603 ] 

Jonathon Wong commented on OFBIZ-642:
-------------------------------------

Is there a problem with dial-up lines? Exactly how big are the final HTML outputs from OFBiz? As I had suggested in the dev ML, any slowdown in HTML outputs due to size of outputs should be amortized by backend (JRE, database) costs. I'd suspect that backend processes take more time than it is to output HTML currently.

But I could be wrong. Your point 2 is worrying. There could be hundreds of UI labels in hundreds of languages sent out per HTML output.

Your point 3 should come as a stop-gap measure. As David mentioned, we can use Catalina's compression. Most, if not all, browsers today do support compressed formats for HTML outputs. We should note that using Catalina's (webserver's) compression will almost certainly wipe out any positive effect from the <#compress></#compress> directives, making those directives superfluous or extraneous.

Your point 1 isn't so much for faster HTML outputs (unless current non-use of styles is incredibly widespread and massive). It's more for better UI consistency and easier programmability. With more styles in use, a programmer can easily eyeball for a style already in use in HTML output, look at classname of style, and reuse that style. Currently, I also do a quick search of attributes in stylesheets to make sure I don't find what I need before I code my own style, until somebody comes up with comprehensive document of which styles should be used for what.

Your point 1, though seemingly trivial, is very important for the look-and-feel of OFBiz, an aspect often sorely and dangerously neglected by programmers (like me).

This issue seems bigger than you put it (as trivial).

> Make OFBiz more dial-up friendly
> --------------------------------
>
>                 Key: OFBIZ-642
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-642
>             Project: Apache OFBiz (The Open for Business Project)
>          Issue Type: Improvement
>            Reporter: Adrian Crum
>            Priority: Trivial
>
> Reduce OFBiz's HTML output so that pages load faster on dial-up lines.
> Three things can be done to achieve that goal:
> 1. Reduce HTML code through better use of styles (currently in progress).
> 2. Eliminate the language selection code that is sent out with every page request. Intead of having a selection box in the header, just display the currently selected language and provide a link to change it. Clicking on the link could produce a language selection popup window - similar to the current lookup windows.
> 3. Freemarker has the <#compress></#compress> directives which eliminate unnecessary HTML white space. A recent test showed the directives can yield a 33% reduction in markup. Problem is, that only works if the directive is placed in every FTL file. There needs to be a way to make that a global setting in Freemarker, so that ALL markup is reduced - without any additional FTL coding. I looked around the Freemarker website for a way to do that, but couldn't find anything.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.