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 vote and comment on it.

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

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

  1. OS support

    I added OS support please have a review https://github.com/headjs/headjs/pull/301

    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…)
    • Local Fallback Option

      I've looked at the API, googled and looked at stackoverflow, but there doesn't seem a way to indicate a fallback resource, if the external resource fails to load.

      7 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…)
      • Consider some adjustments so as to enable head.js use with document type image/svg+xml.

        I have made some crude adjustments to test this is do-able.
        Not worthy of a forking.
        Where can I find an explain of the adjustments headload.js make to element's id attribute.
        Thanks!
        MarkT

        4 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…)
          1 comment  ·  Admin →
        • Disable CSS Router functionality

          Preferably by setting a value in the configuration

          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…)
          • Handle Compessed Assets

            head.js should be able to handle precompressed assets that have non-standard file types,

            To load these assets async with head.js,, I need to write some standard js. Would be nice if I could just do a head.load("js/script.jsgz") and it would work.

            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…)
            • 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…)
                • Add support to target viewport height

                  Right now it's only possible to target width with .lt, it should be possible to also target the height.

                  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…)
                    1 comment  ·  Admin →
                  • Don't see your idea?

                  HeadJS Feature Suggestions

                  Feedback and Knowledge Base