{"action":"created","issue":{"url":"https://api.github.com/repos/django-compressor/django-compressor/issues/508","labels_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/508/comments","events_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/508/events","html_url":"https://github.com/django-compressor/django-compressor/issues/508","id":32025388,"number":508,"title":"It takes a long time to load pages that compile SASS","user":{"login":"epicserve","id":191620,"avatar_url":"https://avatars.githubusercontent.com/u/191620?v=3","gravatar_id":"","url":"https://api.github.com/users/epicserve","html_url":"https://github.com/epicserve","followers_url":"https://api.github.com/users/epicserve/followers","following_url":"https://api.github.com/users/epicserve/following{/other_user}","gists_url":"https://api.github.com/users/epicserve/gists{/gist_id}","starred_url":"https://api.github.com/users/epicserve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epicserve/subscriptions","organizations_url":"https://api.github.com/users/epicserve/orgs","repos_url":"https://api.github.com/users/epicserve/repos","events_url":"https://api.github.com/users/epicserve/events{/privacy}","received_events_url":"https://api.github.com/users/epicserve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-04-23T01:29:18Z","updated_at":"2015-09-21T14:00:10Z","closed_at":null,"body":"It's taking ~1.0s to load pages that compile SASS. If I comment out the following in the template it takes ~70ms to load the page.\r\n\r\n```html\r\n{% compress css %}\r\n<link type=\"text/x-scss\" rel=\"stylesheet\" href=\"{{ STATIC_URL }}scss/base.scss\" charset=\"utf-8\">\r\n{% endcompress %}\r\n```\r\nI've setup my django-base-site so anyone that wants to look into this can replicate what I'm talking about. To install the base site just follow the [setup docs](https://github.com/epicserve/django-base-site/tree/compressor-sass-example/docs/usage-and-setup.rst).\r\n\r\nThe base template is located [here](https://github.com/epicserve/django-base-site/tree/compressor-sass-example/templates/base/base.html) and the settings are located [here](https://github.com/epicserve/django-base-site/tree/compressor-sass-example/config/settings/base.py).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/django-compressor/django-compressor/issues/comments/141989628","html_url":"https://github.com/django-compressor/django-compressor/issues/508#issuecomment-141989628","issue_url":"https://api.github.com/repos/django-compressor/django-compressor/issues/508","id":141989628,"user":{"login":"karyon","id":1891915,"avatar_url":"https://avatars.githubusercontent.com/u/1891915?v=3","gravatar_id":"","url":"https://api.github.com/users/karyon","html_url":"https://github.com/karyon","followers_url":"https://api.github.com/users/karyon/followers","following_url":"https://api.github.com/users/karyon/following{/other_user}","gists_url":"https://api.github.com/users/karyon/gists{/gist_id}","starred_url":"https://api.github.com/users/karyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karyon/subscriptions","organizations_url":"https://api.github.com/users/karyon/orgs","repos_url":"https://api.github.com/users/karyon/repos","events_url":"https://api.github.com/users/karyon/events{/privacy}","received_events_url":"https://api.github.com/users/karyon/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T14:00:10Z","updated_at":"2015-09-21T14:00:10Z","body":"the base.scss includes bootstrap. so, when loading that page, bootstrap gets compiled. i think 1s is pretty good for that :) in any case, i'd assume any speedyness or slowness is caused by the compiler, not django-compressor.\r\n\r\nby now there is the setting COMPRESS_CACHEABLE_PRECOMPILERS, where you can tell compressor to not compile files of that precompiler if they were not changed. have a look at https://django-compressor.readthedocs.org/en/latest/settings/#django.conf.settings.COMPRESS_CACHEABLE_PRECOMPILERS.\r\n\r\nvoting for closing this :)"}}