Distribute a version of FullCalendar with all plugins
See original GitHub issue@toxpal raises a good point about how annoying it is to need to load many different plugin files, whereas in v4 only 1 JS and CSS file were required. Users of a Webkit/Rollup build environment probably appreciate the division into plugins, because their build environment does the bundling for them, and they can save on filesize, but for people who initialize via script tags and browser globals, this can definitely be annoying.
Something that is annoying for users of both techniques is that they need to manually include all required CSS files. This low-tech solution was decided in this issue.
Something else that doesn’t make a whole lot of sense is how the plugin files are used from a CDN (see the “CDN” section on the Downloads page). The whole reason people use CDNs is to make their sites load faster, but if they need to load each individual plugin files (both JS and CSS), it sort of defeats the point. They could end up with ~8 requests.
What I’m getting at is… maybe we should offer a build of FullCalendar that includes ALL of the plugins by default. It wouldn’t be necessary to feed them into the plugins
array. Everything would just work. Of course, this single JS/CSS would be larger.
I’m not exactly sure how this would work with Scheduler’s plugins.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:13 (5 by maintainers)
Top GitHub Comments
Hi @ppazos, I was trying the same as you so here is my solution. I feel it’s not really best one ever but at least it’s working. @iiibbbmmm the aim is to have a custom build to integrate as a script tag. Fullcalendar.io only provide full plugins build and in order to optimize loading time, it’s great to be able to have a custom build that fits to our particular needs.
src/main.js
by :yarn run build
(ornpm
equivalent)dist/main.js
, and integrate to your websitepackage.json
andsrc/main.js
Note: If you need a minified version, edit
webpack.config.js
and changemode: 'production'
.hi @steelbrain , a beta will definitely be coming out on Monday (apr 6). sorry about the delay