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

allow passing scripts to load via query path to head.js #146

Open
ittayd opened this issue Jun 14, 2011 · 2 comments
Open

allow passing scripts to load via query path to head.js #146

ittayd opened this issue Jun 14, 2011 · 2 comments

Comments

@ittayd
Copy link

ittayd commented Jun 14, 2011

(Unless I missed something) After I load head.js, I still need a piece of script to load the other libraries that I require.

It would be nice if I could pass these as the query part:
<script src=".../head.js?load=myscript.js"></script>

(another way is to put this in the options hash, but I prefer the query trick since it is more concise)

@maikeldaloo
Copy link

I agree, I would love to have a way for loading my main file without adding another script tag.

But I think require.js has done it the right way:

<script src="head.js" data-main="js/main.js"></script>

I would love to see that in head.js.

@igorlima
Copy link
Member

I would love to see that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants