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

Use mutation observers to measure number of HTML changes #87

Closed
macbre opened this issue Sep 22, 2013 · 2 comments
Closed

Use mutation observers to measure number of HTML changes #87

macbre opened this issue Sep 22, 2013 · 2 comments
Assignees
Milestone

Comments

@macbre
Copy link
Owner

macbre commented Sep 22, 2013

@ghost ghost assigned macbre Sep 22, 2013
@macbre
Copy link
Owner Author

macbre commented May 15, 2014

Waiting for #313

@macbre
Copy link
Owner Author

macbre commented Jun 19, 2014

<body>
        <p id="foo">foo</p>
        <span id="delete"></span>

        <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
        <script>
                $(function() {
                        $('#foo').css({
                                color: 'red',
                                background: 'green'
                        });

                        $('#foo').append('<b>bar</b>');

                        var del = document.getElementById('delete');
                        $(del).remove();
                });
        </script>
</body>

will generate the following:

10:13:22.056 DOM mutation: "style" attr (was "") set on p#foo
10:13:22.058 DOM mutation: "style" attr (was "color: red;") set on p#foo
10:13:22.062 DOM mutation: node "b[1]" added to "p#foo"
10:13:22.063 DOM mutation: node "span#delete" removed from "body"
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant