I'm seeing some related questions, but nothing specific to this case.
This question is asked in the context of Magento, but it by no means would be limited to here.
I have a <head> template that, among the other things a head will do, includes various Javascript files.
There is one script that for general reasons, I would prefer to include from the author's CDN. Unfortunately, the author does not make a version available over HTTPS which will result in users seeing "insecure content" when loading this script (and depending on browser, failing to run the code).
I understand that I can simply save this file to my local domain where it will be available over HTTPS, but as I said, I would prefer to grab this script from the CDN.
As a work around, I have used (in the template):
<script type="text/javascript">
<?php echo file_get_contents('http://path.to/the/file.js' ?>
</script>
This allows the file to live without an HTTPS version since it is included when PHP is parsed rather than as a separate resource loaded in the browser at run-time.
Assuming I left a comment in the template explaining why this method is used, are there any significant repurcussions I might find by doing it this way?