1👍
WireCloud uses django-compressor
for unify JavaScript and CSS files and should be enabled if DEBUG
is False
in your settings.py
file.
I’ve tested in the FIWARE Lab’s Mashup portal with a dashboard composed of 4 widgets and 4 operators, this lead to ~100 request (javascript files, initial ajax request, css files, …). But take into account that almost all of those request should come from cache (they are no real requests):
Check your Apache configuration if you don’t see this behaviour. Others requests should be returning a 304
error code, so they are real requests but of a ridiculous size if the response has not changed:
Anyway, we’re working on reducing the required requests and we’re open to any suggestion (would be great if you open a ticket with the suggestion of compressing WirecloudAPI
files for widgets and operators).