📜 ⬆️ ⬇️

I am looking for javascript tagging

I am looking for my “Notes” (a project on Google Code , a topic on Habré ) already written JavaScript code with a search for tags in records on a page that does not require a server side. My implementation on ~ 250 notes began to slow down, and I do not consider myself so experienced in JavaScript to be engaged in optimization. Frankly, I have already tried to optimize, but it did not help. And the invention of bicycles is a good thing for learning, but not for use in production :)

My script can be viewed on the project website, namely here . Any criticism by code is also strongly encouraged. Thank you in advance.

UPD: I used the no_smoking habrachele board , cleaned the code from the traces of previous optimization attempts, used the return value of the jQuery.append () function, discovered the Firebug profiler. The intermediate result is an increase in speed of approximately two times.

')

Source: https://habr.com/ru/post/48241/


All Articles