HeadJS Feature Suggestions

Features are a result of users like you expressing their needs, let us know how we can help !

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Preloading Assets

    Not sure if it does this already. I would like to start preloading assets for other areas of the site as soon as the first page is loaded. Can this be done?

    8 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      under review  ·  1 comment  ·  Admin →
    • URL prefix

      how about introducing prefix support?
      if for example i had a cdn-)base-url like

      'http://cdnjs.cloudflare.com/ajax/libs/headjs/';

      and wanted to load multiple scripts prefixed by this base
      i'd currently have to type out the full url for every single script.

      i' thinking about sth like

      <script>

      head.ready('early', function(){...});

      head.js(

      '/path/to/locally/hosted/file.js',
      {
      // here goes the prefix
      'http://cdnjs.cloudflare.com/ajax/libs/headjs/''; :
      {
      // as of this example leaf objects must have labels
      // which is a good compromise i think
      label1 : 'first.js',
      early : 'second.js'
      }
      },
      {
      // with an array things get too fuzzy i think
      // though non-labeled…

      1 vote
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
      • Don't see your idea?

      HeadJS Feature Suggestions

      Feedback and Knowledge Base