How to reduce the amount of code that is generated by the ComboBox?
Our goal has been to keep the size of the generated code at a minimum for the sake of a fast Internet communication. As a result of our efforts, the average code size including the scripts, HTML, cascading style sheets, etc. related to the APNSoft ComboBox is in the range of 5-10K only.
But here are our recommendations how to reduce the result code.
Short IDs
Use short IDs for component instance and items. ID is used as the prefix for naming all of HTML and JavaScript parts in order to ensure uniqueness. Using a short ID (for example "cu", "gb", etc. instead of "Contact_Us", "Guest_Book") will decrease the overall amount of rendered markup.
External CSS
By default, control takes CSS Style from the Skin Folder, adds unique prefix to classes and spits out complete style code into the page. You can add this CSS Style to the page by using the <link> element inside the <head> section. The browser will use the cached version of the CSS file, saving you about 10 kb per request. Do the following: