DOM loaded twice

It seems, that DOM is loaded twice. The elements that should be unique are doubled when i’m selecting them … var element = $$("#elementid");

Any suggestions?

Kind regards.

In my knowledge, this is Framework7 behavior. As default, view hold three stages: previous page, current page, and next page. In your case, you may have duplicate ids or access the same page that chain each other.

first-page (previous) > first-page (current)

I suggest to use Page Name to manipulate or selecting an element.


Thank you for trying to help, but there are no duplicate ids and suggested code still returns two elements.
DOM is doubled right after page loads, before any page redirects or anything like that.

What is the code you’ve used to initialise Dom7?