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

Removed the bootstrap-all files #2787

Closed
wants to merge 2 commits into from
Closed

Removed the bootstrap-all files #2787

wants to merge 2 commits into from

Conversation

javiereguiluz
Copy link
Collaborator

This implements the idea suggested by @alterphp in #2784. The new docs explain it:

Loading the Entire Bootstrap Framework
--------------------------------------

In EasyAdmin versions prior to 2.2.1, the backend didn't load the entire CSS and
JavaScript code from Bootstrap but only the parts that used it. This was made to
improve performance and required loading some separate files called
``bootstrap-all.css`` and ``bootstrap-all.js`` when you needed to use some
Bootstrap feature not included by default.

Given that the performance gain was minimal, this idea was abandoned and,
starting from EasyAdmin 2.2.1 the entire Boostrap CSS and JavaScript code is
loaded by default in all pages.

On my local computer, the compressed size of the entire Bootstrap contents is reasonable: 77KB for JS and 43KB for CSS.

javiereguiluz added a commit that referenced this pull request Jul 6, 2019
This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Removed the bootstrap-all files

This implements the idea suggested by @alterphp in #2784. The new docs explain it:

```
Loading the Entire Bootstrap Framework
--------------------------------------

In EasyAdmin versions prior to 2.2.1, the backend didn't load the entire CSS and
JavaScript code from Bootstrap but only the parts that used it. This was made to
improve performance and required loading some separate files called
``bootstrap-all.css`` and ``bootstrap-all.js`` when you needed to use some
Bootstrap feature not included by default.

Given that the performance gain was minimal, this idea was abandoned and,
starting from EasyAdmin 2.2.1 the entire Boostrap CSS and JavaScript code is
loaded by default in all pages.
```

On my local computer, the compressed size of the entire Bootstrap contents is reasonable: 77KB for JS and 43KB for CSS.

Commits
-------

7784d92 Removed the bootstrap-all files
@javiereguiluz javiereguiluz deleted the fix_2784 branch July 6, 2019 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant