- will this have any side effect?
- <script type="text/javascript" src="data:text/javascript;base64,<?php echo base64_encode('var thing = '.json_encode($thing)); ?>"></script>
- <script type="text/javascript">var thing = <?php echo json_encode($thing); ?></script>