How to remove nicepage.js and trim down nicepage.css

bradlymathews
3 Posts
bradlymathews posted this 21 July 2021
Ask a Question

I am trying to use Nicepage to create an invoice template which will then be run through handlebars and turned into a PDF. I need pretty simple CSS and no JS within the template.

Can Nicepage clean the HTML it generates, remove all unneeded CSS and all JS?

I am trying to use Nicepage to create an invoice template which will then be run through handlebars and turned into a PDF. I need pretty simple CSS and no JS within the template. Can Nicepage clean the HTML it generates, remove all unneeded CSS and all JS?
Vote to pay developers attention to this features or issue.
5 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 21 July 2021

Hi,

There is no such possibility, you can edit the exported theme manually.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, There is no such possibility, you can edit the exported theme manually. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
MikeStatic
4 Posts
MikeStatic posted this 29 November 2021

The file nicepage.css is a whopping 1.1 MB! That doesn't help with loading times. It's a bloated file, half of which isn't used most of the time, that needs to be set up more efficiently. Could NP look into this, please?

The file nicepage.css is a whopping 1.1 MB! That doesn't help with loading times. It's a bloated file, half of which isn't used most of the time, that needs to be set up more efficiently. Could NP look into this, please?
Support Team
Support Team posted this 29 November 2021

Hi,

Nicepage is a theme generator tool and for the generator it is a normal practice to have a bit larger files than the manually written themes as we need to include CSS code for all the possible elements that users might use with the theme. In any case, feel free to minify the exported themes using external tools.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Nicepage is a theme generator tool and for the generator it is a normal practice to have a bit larger files than the manually written themes as we need to include CSS code for all the possible elements that users might use with the theme. In any case, feel free to minify the exported themes using external tools. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
nils.riga
1 Posts
nils.riga posted this 19 February 2022

1 MB for 5 html pages is not worth to go static websites. Cool prog though.

But on the other hand it pays off, the more pages and images you have. But I'd say that's only for 200 pages roughly, to reach the level of 10kb max, for 5 html pages, equivalent.

But nonetheless, a cool prog. Given that the html is perfect and the gui is perfect. Your just missing some sort of an integration with vscode for example. Now that would be cool. Static (lightweight mind you) website builder with realtime integration with vscode. So that if I implement extra code I don't have to re implement it every time I make a visual change. Not even that (that also, of course, as, if I would stick to you marvelous generator, I would need to write up some code for the workflow). But not even that. It's those pesky few megabites. My inner programmer forbids me to call that acceptable. Because in my mind I imagine that implementing webpack or other minifying solution should not be so impossible. (of course, minding that a user would like to add extra code (like a javascript framework, to use some obscure plugins) )

Don't get me wrong - this is a truthful encouragement from the heart, because I Really liked your program. I mean it's perfect except for the very large files, and no clear way how could I implement extra code. Because I know how to code. So I would love if your project could be all encompassing swiss army knife for all things fronted, forever. It worked soo smooth. (i guess it was compiled and minified ;)

> 1 MB for 5 html pages is not worth to go static websites. Cool prog though. But on the other hand it pays off, the more pages and images you have. But I'd say that's only for 200 pages roughly, to reach the level of 10kb max, for 5 html pages, equivalent. But nonetheless, a cool prog. Given that the html is perfect and the gui is perfect. Your just missing some sort of an integration with vscode for example. Now that would be cool. Static (lightweight mind you) website builder with realtime integration with vscode. So that if I implement extra code I don't have to re implement it every time I make a visual change. Not even that (that also, of course, as, if I would stick to you marvelous generator, I would need to write up some code for the workflow). But not even that. It's those pesky few megabites. My inner programmer forbids me to call that acceptable. Because in my mind I imagine that implementing webpack or other minifying solution should not be so impossible. (of course, minding that a user would like to add extra code (like a javascript framework, to use some obscure plugins) ) Don't get me wrong - this is a truthful encouragement from the heart, because I Really liked your program. I mean it's perfect except for the very large files, and no clear way how could I implement extra code. Because I know how to code. So I would love if your project could be all encompassing swiss army knife for all things fronted, forever. It worked soo smooth. (i guess it was compiled and minified ;)
Support Team
Support Team posted this 21 February 2022

Hi,

Actually we use some minification for the exported files, but it may be effective to use modification tools with the exported theme as well. Also we allow to include your custom code if needed, you can add the HTML control into the content to add your extra code. Also scripts may be added into the head section using the Theme Settings >> HTML >> Additional Head HTML tab.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Actually we use some minification for the exported files, but it may be effective to use modification tools with the exported theme as well. Also we allow to include your custom code if needed, you can add the HTML control into the content to add your extra code. Also scripts may be added into the head section using the Theme Settings >> HTML >> Additional Head HTML tab. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments