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

Amardeep Singh Jhajj commented on OFBIZ-1319:
---------------------------------------------

I agree with you that having smaller files with their related topics. But I 
would suggest to have one file for now for all utilities because increasing 
number of js files in page will increase the HTTP request. Please read - 
Minimize HTTP Requests

https://developer.yahoo.com/performance/rules.html

Here, one thing can be done in future that we may add some mechanism for 
concatenation of js files (using build tools) into one file, which normally 
done for js files which includes in all pages. This one file further minimized 
during build. So concatenation, minification can be a part of build process. I 
am not currently planned or thought about the build process for it.

In that case we can break current selectall.js into smaller files. So its just 
my thought, i am open to suggestions from you :)

Currently, I am focusing on following things-

1. Simplify and improve currently written utilities so that it can be used from 
any where using class, id or data attributes. It will help us to remove inline 
js in ftls.
2. Removing unused code from selectall.js


> Split javascript files to have more generic ones includable in all screens, 
> and the more specific ones included more locally
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1319
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1319
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> From a David's E. Jones comment on ML :
> We should split up javascript files to have the more generic ones includable 
> in all screens, and the more specific ones (like the toggle* and selectAll* 
> methods in there) into a file that can be included more locally. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to