I agree that it can slow the page down some, but every time that point comes us, it is best to evaluate what is more important in this specific case: keeping to best practices or speed?
If you have the time, use FireBug or YSlow to test what the differences are. If they are less than 100ms, it may be worth it to just go with best practices. -Brian On 10/31/2012 10:05 AM, Blair Williams wrote: > Using AJAX is definitely a cleaner solution but can slow down the performance > of your script -- so I try to avoid it where possible (especially if you > already have the JSON when the PHP renders the page). I think your original > approach was good (other than the JSON.parse which is unnecessary here). > > Blair _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
