question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Announcement: New version with support for CSS files

See original GitHub issue

Hi Everyone,

The newest version of LoadJS (2.1.0) includes support for fetching CSS files:

loadjs(['/path/to/foo.css', '/path/to/bar.js'], {
  success: function() { /* foo.css and bar.js loaded */ },
  fail: function(depsNotFound) { /* foo.css or bar.js didn't load */ }
});

Please try it out and let us know what you think!

Andres

https://github.com/muicss/loadjs https://www.npmjs.com/package/loadjs

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
amoreycommented, Mar 28, 2017

@Boldewyn The latest version of LoadJS (v3.5.0) has support for “css!” prefix to force treating files as stylesheets: https://github.com/muicss/loadjs https://www.npmjs.com/package/loadjs

1reaction
amoreycommented, Dec 27, 2016

Ok, let’s keep the #.css hack for now and give others a chance to weigh in.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New version with support for Promises and an Edge CSS ...
Hi Everyone, I just wanted to let you know that we just released a new version of LoadJS (v.3.6.0) that includes a couple...
Read more >
Feature Announcement - Tailwind CSS support - Wasp-lang
When these two files are present, Wasp will make sure all the required NPM dependencies get added, that PostCSS plays nicely with Tailwind ......
Read more >
About The Latest Versions of HTML5 and CSS - Universal Class
The latest version of HTML is HTML 5, which has changed the face of web page design. The latest version of CSS is...
Read more >
Tailwind CSS v3.0
Tailwind CSS v3.0 is a new major version of the framework and there are some minor breaking changes, but we've worked really hard...
Read more >
How Do I Force the Browser to Update the CSS?
Notice that I'm pointing to my CSS using the commonly known <link> ... How do i make sure that the latest version of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found