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