Fix bug where data would be injected inside conditional IE tags#5
Fix bug where data would be injected inside conditional IE tags#5tomwasd wants to merge 1 commit intometeorhacks:masterfrom
Conversation
|
I have deferScriptLoading turned on which is moving all my scripts but for the conditional ones (Cheerio doesn't detect them) to the bottom of the page. Flow Router then sees the conditional script as the first script and injects the code there, within the conditional tags. I've started to question whether having the data just before |
|
Sorry, flip flopping a bit here! Having thought about it, I don't think there are any issues with sticking the injected data just before the It seems like the best solution to avoid the script tag ending up within conditional tags so I've reopened the PR. |
Hi,
I have a
.htmlfile that conditionally loads styles and scripts for IE9, e.g.Inject data was injecting the data inside the
<!--[if lt IE 9]>causing all sorts of issues.I've changed the code so that rather than jumping in before a
<script>tag it just gets added at the end of the<body>tag.It fixes my problem and I can't see that it would cause any others?
On an unrelated note I've also got a local version of inject-data that doesn't require jQuery - happy to do a PR for that if it's of any use.