mitro-co / mitro

Repository for all Mitro client & server code
GNU General Public License v3.0
1.64k stars 242 forks source link

Freezes with WordPress menu editing system #57

Open joshlevinson opened 10 years ago

joshlevinson commented 10 years ago

With Mitro enabled, utilizing WordPress's menu editing system becomes nigh impossible.

When dragging menu items to order them, the entire browser tab freezes for several seconds. Recording this behavior with Chrome's Timeline profiler revealed the pause was due to something in this file: https://github.com/mitro-co/mitro/blob/master/browser-ext/login/common/content.js Chrome said it's line 22, but this is in the minifed JS, not the above development file.

I'm not sure what's causing this, but I assume it has something to do with WordPress's menu editor being a drag-drop UI within a form that constantly CREDs form elements. Maybe it causes Mitro to scan the form in a way that causes the freeeze?