Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate each script tag into its own context to limit error scope. #67

Merged
merged 2 commits into from
Apr 13, 2018

Conversation

abernix
Copy link
Contributor

@abernix abernix commented Apr 13, 2018

Unfortunately, a result of the problem reported in #65 is that all other
JavaScript, including search, was prevented from working because they all
lived in a shared <script> tag. This change puts each concern in its own
<script> tag to isolate the damage by those script tags.

Of course, each of the script providers would have had this in their own
code-snippets they offer for copy-pasting, but I guess we decided to put
them all in a single <script> tag at one point. 😢

Ref: #65
Ref: 544f1f408

Unfortunately, a result of the problem reported in #65 is that all other
JavaScript, including search, was prevented from working because they all
lived in a shared `<script>` tag.  This change puts each concern in its own
`<script>` tag to isolate the damage by those script tags.

Of course, each of the script providers would have had this in their own
code-snippets they offer for copy-pasting, but I guess we decided to put
them all in a single `<script>` tag at one point. 😢

Ref: https://github.com/meteor/meteor-theme-hexo/commits/544f1f4084
Ref: #65
@abernix abernix force-pushed the abernix/separate-script-tags-to-own-contexts branch from 7df2e16 to ac94ffe Compare April 13, 2018 10:39
@abernix abernix merged commit 1cc7c4d into master Apr 13, 2018
@abernix abernix deleted the abernix/separate-script-tags-to-own-contexts branch April 13, 2018 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant