I am having some performance issues using .html()
method of jQuery because it was being really slow. So I searched for alternatives and I found some:
So I am now replacing the .html()
by the method suggested. But now I have another problem:
Javascript that is inside the Html to be added is not being executed.
I have written a simple fiddle to show what is happening:
Can anyone suggest how could I solve this because I need the javascript to be executed.