Speed up block processing with onload instead of onshow
This may be obvious to anyone reading, but it is easy to forget. If you are using blocks and subblocks in your template, it may be considerably longer by the time TBS gets to the onshow event. If you have a block like this:
Where myBlock is a semi-large array or object (meaning you will have several tables at the end) - you can save a lot of processing by simply changing onshow to onload. If you choose an earlier event, you can merge the tag once, when the template loads, instead of once for every item in myBlock.
I think it would be safe to say whenever possible, you should use the earliest event you can. With that in mind, I am trying to determine the order of tag processing. I believe it goes like this:
Though [var] and [val] fields don't fit into this ordering, I will try to explain them. [var] and [val] fields are a little different as they will merge based on the tag they are used with.
[var] fields will merge at the same time as whatever they are included with and have no understanding of the field you are currently merging (you could not use var.field to access blockName.field - use val for that), e.g. the var in this example will merge when blockName merges:
[val] fields are equal to the current data item. For example, you would use:
I hope anyone reading will feel free to correct, clarify, or expand on my explanation of this.