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

photos处的JS文件无法放于head中。 #4

Open
caliburn1994 opened this issue Nov 22, 2018 · 0 comments
Open

photos处的JS文件无法放于head中。 #4

caliburn1994 opened this issue Nov 22, 2018 · 0 comments
Labels
question Further information is requested

Comments

@caliburn1994
Copy link
Owner

因为JS文件中有初始化操作,当在初始化时,发现内容中的标签还没被加载,所以会报错。
因此此时只能放置于内容之后,等内容初始化才应该被加载。

问题1: JS文件放置于头部和尾部的区别?

问题2: jekyll的加载方式。
就目前而言,猜测:

  • 本地的demo是全局分析后,一次性加载。
  • jekyll是分部加载,先加载head,再加载其他部分,依次加载。
@caliburn1994 caliburn1994 added the question Further information is requested label Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant