The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

bitsprint (2) [Avatar] Offline
#1
Hi,

Really enjoying the book so far.

I know it's unlikely but what if there are no other script tags on the page?

Could you perhaps include the script in Listing 2.1 after the body element?

I don't know whether it's worth clarifying what the best practice is in this case, just made me wonder as I read through it.

Thanks,

Paul
anton.kovalyov (1) [Avatar] Offline
#2
Re: Errorless script tag insertion (Page 27)
Hi,

Since the only way to include a third-party widget on the page is through the <script> element, there will always be at least one <script> element.

Thanks for the feedback, we will make it more clear in the next iteration.

Anton