Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap CSS classes called 2 times #1451

Closed
fdesanto opened this issue Feb 1, 2016 · 0 comments
Closed

Bootstrap CSS classes called 2 times #1451

fdesanto opened this issue Feb 1, 2016 · 0 comments
Labels

Comments

@fdesanto
Copy link

fdesanto commented Feb 1, 2016

In each page the bootstrap CSS file is loaded 2 times:

  • assets/a31f5647/boostrap.css (come from yii\bootstrap\BootstrapAsset)
  • css/bootstrap.min.css (come from AppAsset)

This cause 127Kb more on each page.

to remove bootstrap CSS file from Yii framework, I have added this rule in 'components' array in file protected/humhub/config/web.php

'assetManager' => [
            'bundles' => [
                'yii\bootstrap\BootstrapAsset' => [
                    'css'=>[]
                ],
            ],
        ],
@luke- luke- added the Kind:BUG label Feb 1, 2016
@luke- luke- closed this as completed in 7461cc1 Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants