View Single Post
Old 11-19-2012, 10:15 AM   PM User | #12
minder
Banned

 
Join Date: Oct 2012
Posts: 81
Thanks: 0
Thanked 4 Times in 4 Posts
minder can only hope to improve
Well there's one source of your delay - jquery!!!

You don't need jquery (and its overheads) to create the select lists at all.

You simply get php tp query the database for the options data, then loop through the result set, in php, to create the html for the select and its options, still on the server, before sending the html including the html for the select and the 300+ options back to the user's browser.

If you get rid of the jquery "layer" in the creation of select and its options, I'm sure your page will load much faster.

btw: why are you using jquery (which is javascript) since you said in your op

Quote:
make the forms in such a way that they should function even if there's no javascript.
No javascript, then NO JQUERY either!!
minder is offline   Reply With Quote