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

Is the SiteName.head.js file any useful besides IE9 compatibility? #17

Open
teo-tsirpanis opened this issue Apr 11, 2018 · 2 comments
Open

Comments

@teo-tsirpanis
Copy link

Other than providing compatibility for a legacy browser, it uses document.write to inject scripts, which is discouraged by Chrome. I currently have this file commented out from my HTML. Is there another purpose for it?

@granicz
Copy link
Member

granicz commented Apr 11, 2018

Any external dependencies will be referenced via that file, but indeed, we have been discussing changing the way these are included in SPAs. If you have any suggestions, feel free to comment here.

@Tarmil
Copy link
Member

Tarmil commented Apr 12, 2018

As an alternative you can simply copy the contents of SiteName.head.html into your HTML file instead of the <script src="SiteName.head.js">. You'll just have to remember to check, whenever you add a new dependency, whether that file has changed, and if so, apply these changes to your HTML file. As @granicz said, we're looking into alternatives to make this whole process unnecessary -- ideally you would only need SiteName.css and SiteName{.min}.js.

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

No branches or pull requests

3 participants