Code Monkey home page Code Monkey logo

pscriticalcss's Introduction

PrestaShop Critical CSS

PHP tests Build & Release draft

The PrestaShop Critical CSS module automatically generates optimized CSS files for your store's front controllers, without requiring Node.js. These files can help improve your website's performance and speed.

Installation

To install the module, follow these steps:

  1. Download the latest release of the module from the releases page.
  2. Extract the contents of the archive to the modules directory of your PrestaShop installation.
  3. In the PrestaShop backoffice, navigate to the "Modules" page and search for "Critical CSS".
  4. Click the "Install" button next to the "Critical CSS" module.
  5. Once the module is installed, click the "Configure" button to access the module's configuration page.

Building the module

Direct download

If you want to get a zip ready to install on your shop. You can directly download it by clicking here.

Production

  1. Clone this repo git clone [email protected]:PickleBoxer/pscriticalcss.git
  2. make build-prod-zip

The zip will be generated in the root directory of the module.

Development

  1. Clone this repo
  2. make docker-build

Configuration

On the configuration page, you can enable or disable the functionality of the module to regenerate the CSS files for all front controllers.

Please note that this module has only been tested on the Classic theme from PrestaShop. It may cause issues with custom themes.

License

This module is licensed under the Academic Free License version 3.0. See the LICENSE file for details.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue. If you would like to contribute code, please fork the repository and submit a pull request.

Credits

This module was created by PickleBoxer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.