calmchess Posted October 29, 2012 Share Posted October 29, 2012 How do I hide the tags to my .js files within an html document I have seen a few sites around using Javascript but they seem to be hiding their links to .js files am I hallucinating or is this possible? Link to comment https://forums.phpfreaks.com/topic/270033-javascript-hide-links-to-js-files/ Share on other sites More sharing options...
Jessica Posted October 29, 2012 Share Posted October 29, 2012 It's not possible. Link to comment https://forums.phpfreaks.com/topic/270033-javascript-hide-links-to-js-files/#findComment-1388452 Share on other sites More sharing options...
JonnoTheDev Posted October 29, 2012 Share Posted October 29, 2012 They are probably just obfuscating it by using javascript to create a script element within the DOM. Something like this http://stackoverflow.com/questions/610995/jquery-cant-append-script-element To be honest I wouldn't even bother. Why try to hide your js includes. Just minify them. Link to comment https://forums.phpfreaks.com/topic/270033-javascript-hide-links-to-js-files/#findComment-1388457 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.