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

[NFR]: Minifier (CSS/JS/HTML) #70

Open
ghost opened this issue Dec 16, 2020 · 0 comments
Open

[NFR]: Minifier (CSS/JS/HTML) #70

ghost opened this issue Dec 16, 2020 · 0 comments
Labels
new feature request Planned Feature or New Feature Request

Comments

@ghost
Copy link

ghost commented Dec 16, 2020

Minify CSS/JS/HTML/Image code and than output to browser. This can also include a image encoding to base64 for example. So it loads all the data from a single page. This should also include options like, image encoding to base64, external stylesheets and javascript files added right into the page. This is not difficult to implement in PHP, but its nice to have something like this right from the box. Just like "Escaper (CSS/JS)" @ #64

Base64 Image Code:

<img src="data:image/png;base64,...">
<img src="data:image/jpg;base64,...">

Regular Code Example:

<html>
  <head>
    <title> Test </title>
    <link rel="stylesheet" href="styles/site.min.css">
    <script src="scripts/site.min.js"></script>
  </head>
  <body>
    <img src="https://domain.com/example.png">
    <h1> Minifier Feature In Phalcon 5.0 </h1>
    <p> Minify CSS/JS/HTML/Image code and than output to browser. </p>
  </body>
</html>

Minified Code Example:

<html><head><title>Test</title></head><style>included site.min.css code here</style><script>included site.min.js code here</script><body><img src="data:image/png;base64,..."><h1>Minifier Feature In Phalcon 5.0</h1><p>Minify CSS/JS/HTML/Image code and than output to browser.</p><p>Minify CSS/JS/HTML/Image code and than output to browser.</p></body></html>
@ghost ghost added the new feature request Planned Feature or New Feature Request label Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature request Planned Feature or New Feature Request
Projects
None yet
Development

No branches or pull requests

0 participants