I wrote
It is mainly a recursive function that initially is called with the root node of the DOM tree (body element) and traverses the nodes in the dept-first manner.
Should it be "that is initially called"?
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.
Sign up to join this communityDepending on the style, adverbs are put at various places. There is no one rule on that. However, I'd write this as...
Mainly, it is a recursive function that is initially called ....
Others may have their versions...