The Token module provides hooks to other modules to serve their own tokens. Multiple modules that support Token integration can generate a really huge nested table tree when displaying the available tokens in the field settings:
This can lead to out-of-memory issues in Views settings or regular field settings:
Earlier I created an issue related to this problem: http://drupal.org/node/1836264. Until a possible solution comes there (e.g. a patch), I would like to solve it my own (it doesn't matter if I temporarily have to "hack" Token's core): I would only like to load this table with the available tokens "on-demand" with AJAX or any other possible solution.
Do you have any ideas how to solve this?