I would like to know two things, and if possible an example.
I have a feedback system that after it sends and writes to the database and appears without giving refresh, almost equal to the comments of facebook . At the moment I'm doing the return by .load()
to add the html with the variables. Is that harmful? Does% s with% slow down?
I would do via .load()
, but there are several lines, the comment html is great (because it has the photo, name, date, menu, everything in comment space) and I thought it would be more organized by .html()
where I pass the variables by jquery , it adds in html and then puts it in .load()
with <div>
.
Is there any more effective way or does .load()
not slow down the system?
I'm afraid that when you get the site up and running, if you have too many comments, slow down ...