Skip to content

Announcement: New version with support for image/css urls with query arguments and anchor tags #97

@amorey

Description

@amorey

Hi Everyone,

I just wanted to let you know that we released a new version of LoadJS (v4.0.0) that includes support for automatic detection of image/css urls with query arguments and anchor tags. Previously you had to force treat such urls using "img!" and "css!" tags:

loadjs(
  [
    'img!image.jpg?arg=val',
    'img!image.jpg#anchortag',
    'css!style.css?arg=val',
    'css!style.css#anchortag'
  ],
  function () {}
);

Now urls of this type are detected automatically:

loadjs(
  [
    'image.jpg?arg=val',
    'image.jpg#anchortag',
    'style.css?arg=val',
    'style.css#anchortag'
  ],
  function () {}
);

Although this seems like a small change, it could cause backwards compatibility issues for users using anchor tag workarounds to force treat urls as image/css files (e.g. "handler?arg=val#.css"). As a result we are treating this as a major version release.

Please try out the new feature and let me know if notice any issues.

Andres

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions