Is it a good idea to init ajax functions only while ‘DOING_AJAX’

The best way to know is to test yourself…but you will most likely find that the performance difference is negligible. Adding those actions don’t mean that the “my_ajax_method_” will be evaluated. It is just setting up a reference…and the reference is only executed if the AJAX call comes in.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)