All Projects → kasparsd → Minit

kasparsd / Minit

Licence: gpl-2.0
A WordPress plugin to combine CSS and Javascript files.

Programming Languages

js
455 projects

Projects that are alternatives of or similar to Minit

Autoptimize
Official Autoptimize repo on Github
Stars: ✭ 245 (-16.38%)
Mutual labels:  wordpress, wordpress-plugin, performance
Performance Improvements For Woocommerce
Performance tweaks for the front-end and back-end of a store.
Stars: ✭ 46 (-84.3%)
Mutual labels:  wordpress, wordpress-plugin, performance
Laps
Light WordPress profiler.
Stars: ✭ 368 (+25.6%)
Mutual labels:  wordpress, wordpress-plugin, performance
Query Monitor
The Developer Tools Panel for WordPress
Stars: ✭ 1,156 (+294.54%)
Mutual labels:  wordpress, wordpress-plugin, performance
Awesome Wp Speed Up
Plugins and resources to speed up and optimize your WordPress site.
Stars: ✭ 375 (+27.99%)
Mutual labels:  wordpress, wordpress-plugin, performance
Fragment Cache
WordPress plugin for partial and async caching.
Stars: ✭ 135 (-53.92%)
Mutual labels:  wordpress, wordpress-plugin, performance
Givewp
GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
Stars: ✭ 233 (-20.48%)
Mutual labels:  wordpress, wordpress-plugin
Multilingual Press
The multisite-based free open source plugin for your multilingual WordPress websites.
Stars: ✭ 239 (-18.43%)
Mutual labels:  wordpress, wordpress-plugin
Gamajo Template Loader
A class to copy into your WordPress plugin, to allow loading template parts with fallback through the child theme > parent theme > plugin.
Stars: ✭ 243 (-17.06%)
Mutual labels:  wordpress, wordpress-plugin
Papi
🚀 WordPress Page Type API with custom fields
Stars: ✭ 258 (-11.95%)
Mutual labels:  wordpress, wordpress-plugin
Wp Jamstack Deployments
A WordPress plugin for JAMstack deployments
Stars: ✭ 222 (-24.23%)
Mutual labels:  wordpress, wordpress-plugin
Tablepress
TablePress is a plugin for WordPress. It enables you to create and manage tables on your website.
Stars: ✭ 249 (-15.02%)
Mutual labels:  wordpress, wordpress-plugin
Wp Graphiql
GraphiQL IDE, fine tuned for use with WPGraphQL
Stars: ✭ 284 (-3.07%)
Mutual labels:  wordpress, wordpress-plugin
Theme Sniffer
Theme Sniffer plugin using sniffs.
Stars: ✭ 228 (-22.18%)
Mutual labels:  wordpress, wordpress-plugin
Code Snippets
Code Snippets WordPress Plugin
Stars: ✭ 226 (-22.87%)
Mutual labels:  wordpress, wordpress-plugin
Wordpress Ajax Load More
🔥 WordPress infinite scroll with Ajax Load More - the ultimate solution to add infinite scroll functionality to your WordPress powered website.
Stars: ✭ 222 (-24.23%)
Mutual labels:  wordpress, wordpress-plugin
Fabrica Dev Kit
A toolkit for faster, smoother WordPress 5 development
Stars: ✭ 256 (-12.63%)
Mutual labels:  wordpress, wordpress-plugin
Awesome Gravity Forms
A collection of third party add-ons for Gravity Forms plugin.
Stars: ✭ 267 (-8.87%)
Mutual labels:  wordpress, wordpress-plugin
Wp Graphql
🚀 GraphQL API for WordPress
Stars: ✭ 3,097 (+957%)
Mutual labels:  wordpress, wordpress-plugin
Create Guten Block
📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
Stars: ✭ 3,040 (+937.54%)
Mutual labels:  wordpress, wordpress-plugin

Minit for WordPress

Install

Install using Composer:

composer require kasparsd/minit

or by manually downloading the latest release file.

How it Works

  • Concatenates all CSS files and Javascript files one file for each type, and stores them in the WordPress uploads directory under /minit. See the configuration section below for how to exclude files from the bundle.

  • Uses the combined version numbers of the enqueued assets to version the concatenated files.

  • Loads the concatenated Javascript file asynchronously in the footer. This will probably break all inline scripts that rely on jQuery being available. See the configuration section below for how to disable this.

  • Loads all external Javascript files asynchronously in the footer of the page.

Screenshots

  1. All CSS files combined in a single file
  2. All external Javascript files loading asynchronously

Configuration

See the Wiki for additional documentation.

Disable Asynchronous Javascript

Use the minit-script-tag-async filter to load the concatenated Javascript synchronously:

add_filter( 'minit-script-tag-async', '__return_false' );

Exclude Files

Use the minit-exclude-js and minit-exclude-css filters to exclude files from the concatenated bundles:

add_filter( 'minit-exclude-js', function( $handles ) {
    $handles[] = 'jquery';

    return $handles;
} );

Minit Addons

Credits

Created by Kaspars Dambis and contributors.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].