Re:PHP: v8.js
by engineerhead on Friday February 24, 2012 @12:19PM
(#3629941)
one possible use can be executing some JS code even if JS is disabled in browser
[ Parent
| on HN ]
yes but that would require server to know that which again requires some sort of ajax which cannot happen because js is disabled!
<noscript>
apparently I have to spell it out to the downvoter...
<script src="/client-side.js"></script>
<noscript><img src="/server-side.js"></noscript>
...which fulfills the requirement of "executing some JS code even if JS is disabled in browser".