Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript optimizations #47

Merged
merged 2 commits into from Aug 23, 2013
Merged

Javascript optimizations #47

merged 2 commits into from Aug 23, 2013

Conversation

rquigley
Copy link
Contributor

Here are a couple of front-end optimizations to the Javascript that we've been using to make the dashboard usable with thousands of jobs. While not as necessary with the recent introduction of pagination, they still make the page perceptively faster.

functions which are called on an interval or repeatedly.
-Bind template data to a variable to avoid 'with' usage.
-Build up markup in a string instead of adding within a loop to avoid
repaints.
-Bind event listeners to table containers instead of each element.
@rquigley
Copy link
Contributor Author

Also fixing the json routes which were broken with the conversion to absolute urls.

@nvie
Copy link
Collaborator

nvie commented Aug 23, 2013

Seems legit, thanks!

nvie added a commit that referenced this pull request Aug 23, 2013
Javascript optimizations
@nvie nvie merged commit 24a3bd2 into Parallels:master Aug 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants