Hi there,
You do realize the code pasted here has errors and doesn’t compile?
The paste included some incorrect Quotes marks…from the C/P.
Reposting the garbage in Block quotes doesn’t make it run either.
also what is posted appears to be a bandaid, Post the actual code you are using with the Code tags above " </> " paste it in there.
Obviously it shouldn’t hang after any number of adverts , so. Let’s get serious if you want to fix it.
HTH
GL PJ