I was thinking of building a little tool that compares a webpage's DOM structure before and after javascript execution and performs a diff. I know that the functionality is already built into some paid SEO tools, but was just curious if you thought that having a standalone feature would be worth the time investment?

Recommended Answers

All 5 Replies

What constitutes "before" and "after"?

The DOM could potentially change every time the mouse moves.

What constitutes "before" and "after"?

The DOM could potentially change every time the mouse moves.

After page load, before any user interactivity.

Essentially the purpose of the tool would be so that a developer could easily spot things that are unintentionally added to their DOM as a result of Javascript they've included, such as ads including tracking pixels, Javascript manipulating the page, etc.

The thought is that it would also be useful to pages that have Javascript-rendered front-ends to make sure that they're search engine friendly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.