webshim icon indicating copy to clipboard operation
webshim copied to clipboard

Option to specify / disable loading paths

Open ghost opened this issue 12 years ago • 2 comments
trafficstars

In the Software, I'm using (Magnolia CMS), it's impossible to mix CSS, JS and Images in the same Repo.

There should be a possibility to change the paths for shims, css and img.

Alternatively it would be great if lazy loading could be disabled (load all in advance in one compressed and therefore small file)

ghost avatar Sep 03 '13 19:09 ghost

I think this bug/restriction in Magnolia was already fixed. Are you using an older version? I would suggest to patch this version instead of trying to change, how webshims works.

However you can disable loading the stylesheet:

$.webshims.setOptions("loadStyles", false);

And embed the a modified stylesheet your own.

aFarkas avatar Sep 05 '13 17:09 aFarkas

(different account, same person) Thx alot for your reply. Yes, in the new 5.0-Verison it's possible to mix such file types. It is, however, not production ready yet and upgrading within the next year (completely different UI, all custom models need to be upgraded, etc. ) is not an option.

Furthermore i don't like the approach of putting css, js and imgs together. This structure feels so "messy" :)

PS: Great work though - after comparing several solutions, I've come to the conclusion that webshims lib is by far the best / most stable.

ghost avatar Sep 06 '13 10:09 ghost