5 Replies - 4288 Views - Last Post: 18 September 2012 - 03:29 PM

#1 anabolicguy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 17-September 12

<script data-cfasync="false" src="/javascript.js"&

Posted 17 September 2012 - 05:36 AM

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

Is This A Good Question/Topic? 0
  • +

Replies To: <script data-cfasync="false" src="/javascript.js"&

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3554
  • View blog
  • Posts: 10,332
  • Joined: 08-June 10

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.
Was This Post Helpful? 0
  • +
  • -

#3 anabolicguy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 17-September 12

Re: <script data-cfasync="false" src="/javascript.js"&

Posted 17 September 2012 - 01:08 PM

View PostDormilich, on 17 September 2012 - 12:08 PM, said:

data-* attributes are part of HTML5, not HTML 4.01.


Yes, I know, there is a sort of workaround or substitute to do the same function with html 4.01 being w3c compliant ?

Lemme know and thanks 4 the answer !
Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3554
  • View blog
  • Posts: 10,332
  • Joined: 08-June 10

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.
Was This Post Helpful? 0
  • +
  • -

#5 anabolicguy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 17-September 12

Re: <script data-cfasync="false" src="/javascript.js"&

Posted 17 September 2012 - 02:10 PM

View PostDormilich, on 17 September 2012 - 01:11 PM, said:

you could try to extend the HTML 4.01 DTD, though Iím not sure, whether the W3C validator properly recognises that.


I don't understand what you mean, can you gimme an example or some links to follow where someone explain this ?

Thanks again
Was This Post Helpful? 0
  • +
  • -

#6 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3554
  • View blog
  • Posts: 10,332
  • Joined: 08-June 10

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1