Hi,
I wanna disable async in some scripts, so I must add
script data-cfasync="false" src="/javascript.js"> </ script>
to the script that I want to exclude.
Problem is that
data-cfasync="false"
give me problems in w3c page validation....
Mine doctype is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Any suggestion ?
thanks
5 Replies - 9282 Views - Last Post: 18 September 2012 - 03:29 PM
#1
<script data-cfasync="false" src="/javascript.js"&
Posted 17 September 2012 - 05:36 AM
Replies To: <script data-cfasync="false" src="/javascript.js"&
#2
Re: <script data-cfasync="false" src="/javascript.js"&
Posted 17 September 2012 - 12:08 PM
data-* attributes are part of HTML5, not HTML 4.01.
#3
Re: <script data-cfasync="false" src="/javascript.js"&
Posted 17 September 2012 - 01:08 PM
#4
Re: <script data-cfasync="false" src="/javascript.js"&
Posted 17 September 2012 - 01:11 PM
you could try to extend the HTML 4.01 DTD, though I’m not sure, whether the W3C validator properly recognises that.
#5
Re: <script data-cfasync="false" src="/javascript.js"&
Posted 17 September 2012 - 02:10 PM
#6
Re: <script data-cfasync="false" src="/javascript.js"&
Posted 18 September 2012 - 03:29 PM
about using custom (extended) DTDs: http://htmlhelp.com/.../customdtd.html
Page 1 of 1