nicepage.css global reference

_Alex_
21 Posts
_Alex_ posted this 27 October 2023
Wishlist

Hey guys,

a SEO tool made me aware of this (see attachment).
If I have a folder structure for my pages, the nicepage.css is being referenced from the subfolders with an url that contains "/../" which leads back to the root folder.

This causes clients to treat this as a different file and send another request to the server if someone is navigating into a subfolder.
The client should use his already cached version of nicepage.css instead of making another query. But this does not work if the url is generated like that.

Maybe you can fix this issue. It would speed up pageload. Thanks in advance.

Alex

Hey guys, a SEO tool made me aware of this (see attachment). If I have a folder structure for my pages, the nicepage.css is being referenced from the subfolders with an url that contains "/../" which leads back to the root folder. This causes clients to treat this as a different file and send another request to the server if someone is navigating into a subfolder. The client should use his already cached version of nicepage.css instead of making another query. But this does not work if the url is generated like that. Maybe you can fix this issue. It would speed up pageload. Thanks in advance. Alex
Vote to pay developers attention to this features or issue.
6 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 27 October 2023

Hello Alexander,

Thanks for contacting us!

Thanks for the feedback.

The issue is that Nicepage currently generates the CSS for each page individually, rather than generating a single CSS file that is referenced by all pages. This can cause the browser to make multiple requests for the CSS file, even if the browser has already cached the file.

Your advice and feedback are beneficial to our development.
We will forward this matter to our team.

...................................................
Sincerely,
George.
Nicepage Support Team

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

Hello Alexander, Thanks for contacting us! Thanks for the feedback. The issue is that Nicepage currently generates the CSS for each page individually, rather than generating a single CSS file that is referenced by all pages. This can cause the browser to make multiple requests for the CSS file, even if the browser has already cached the file. Your advice and feedback are beneficial to our development. We will forward this matter to our team. ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
_Alex_
21 Posts
_Alex_ posted this 27 October 2023

I know that each page gets an individual css file but all pages also reference nicepage.css which is like the main css file, right?

If the pages in subfolders also reference the nicepage.css within root they should not use a url with "/../" in it. That's what I meant. The browser will request the same css file again just because it has another url than the already cached file.

Forward this to the dev team. I'm sure they'll know how to handle it

I know that each page gets an individual css file but all pages also reference nicepage.css which is like the main css file, right? If the pages in subfolders also reference the nicepage.css within root they should not use a url with "/../" in it. That's what I meant. The browser will request the same css file again just because it has another url than the already cached file. Forward this to the dev team. I'm sure they'll know how to handle it
Support Team
Support Team posted this 28 October 2023

Hello Alexander,

Thanks for using Nicepage!

../ or /../ this, means ONE STEP BACK from the folder where you are, it is not other things.

Please attach your site exported as a project here and please also provide an error message which takes from the SEO instrument.

We will forward the case to our Developers Team after we receive those.
...................................................
Sincerely,
George.
Nicepage Support Team

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

Hello Alexander, Thanks for using Nicepage! ../ or /../ this, means ONE STEP BACK from the folder where you are, it is not other things. Please attach your site exported as a project here and please also provide an error message which takes from the SEO instrument. We will forward the case to our Developers Team after we receive those. ................................................... Sincerely, George. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp

Last edited 28 October 2023 by Support Team

_Alex_
21 Posts
_Alex_ posted this 03 November 2023

I know what it means, I was just wondering why you guys use it in generating the path of the nicepage.css file. Its path is always the same.

The problem is on the client side. When there are different paths to the same file the client treats them as individual files and reloads them.

The devs will know what I'm talking about. You won't need a project.

Thanks for your reply. I hope it gets solved. I really like how often you publish updates. It's insane :D keep it up!

I know what it means, I was just wondering why you guys use it in generating the path of the nicepage.css file. Its path is always the same. The problem is on the client side. When there are different paths to the same file the client treats them as individual files and reloads them. The devs will know what I'm talking about. You won't need a project. Thanks for your reply. I hope it gets solved. I really like how often you publish updates. It's insane :D keep it up!
modi73358
1 Posts
modi73358 posted this 03 November 2023

Every web page in your web web page would not want its very own fashion sheet. There isn't any justification for the usage of the equal call for a fashion throughout many domains. Similar to a compressed net path, this could prevent time and effort.

The variety of CSS documents an internet site ought to use is debatable.

An internet site can also additionally use a standalone CSS record if it so chooses. In maximum cases, it is most well known to provide every consumer their very own. If your CSS record incorporates statistics for all pages, you could cache the one's documents relying on variables.

Every web page in your web web page would not want its very own fashion sheet. There isn't any justification for the usage of the equal call for a fashion throughout many domains. Similar to a compressed net path, this could prevent time and effort. The variety of CSS documents an internet site ought to use is debatable. An internet site can also additionally use a standalone CSS record if it so chooses. In maximum cases, it is most well known to provide every consumer their very own. If your CSS record incorporates statistics for all pages, you could cache the one's documents relying on variables.
Support Team
Support Team posted this 03 November 2023

Hi,

We provide two Folder URL Format options for the HTML Export, which allows you to specify the site page URLs either from the root or relatively:

html-export.png

Please try the From Root option.

...................................................
Sincerely,
Susanna I.
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, We provide two *Folder URL Format* options for the HTML Export, which allows you to specify the site page URLs either from the root or relatively: !html-export.png! Please try the *From Root* option. ................................................... Sincerely, Susanna I. 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