I'm trying to unobtrusively detect when JavaScript is disabled by having an image inside of a noscript
element. I'm pretty sure I'm on the right path though I'm not sure about what data I should be echoing exactly.
<noscript><img alt="" src="images/noscript.gif" /></noscript>
The base64 encoded data below is simply a 1x1 transparent GIF image.
header('HTTP/1.1 200');
header('Content-type: image/jpeg');
echo 'data:image/gif;base64,R0lGODlhAQABAIAAAP8A/wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==';
What do I need to do to ensure I can have PHP intercept the image request and have the image successfully be displayed on the page (obviously while JavaScript is disabled)?