HOME   FEED WIKI FORUM USERS TOP GROUPS   REGISTER LOGIN
Strip ID: 1944 Created: 2023-11-09 08:30:45 Last reply: 2023-11-09 10:40:11 Comments: 5



Stylesheet.css




Aluminimalism
#1
2023-11-09 08:30:45
Making a separate thread for this just for tidiness. I think you do intend to clean up the site code at some point, and when you do, I want you to reconsider using stylesheets. You mentioned cache issues, but that would be much easier done with versioning the stylesheets. If you update it, just increment the name, a la stylesheet_main_v101.css, and propagate it to the page templates. You realistically wouldn't even need to do it that often since how often do you update it? The benefit would be that you wouldn't need to write all the CSS through PHP, help you slim down the code. Also if you allow the stylesheets to be cached, it'll reduce the amount of data transferred per page load. Plus you can have multiple stylesheets should that be necessary! Not saying you need to do it, and right now, but I hope you consider! I think it would be beneficial in the long run.

Peyo
#2
2023-11-09 08:33:04
I consider it but I'm way too tired to start a cleanup 😔 (maybe after I run out of fixes to do; but that is not anytime soon )

Aluminimalism
#3
2023-11-09 08:36:53
What version of PHP and what kind of database does the site use? I might have to start learning these so I can help with clean-up and implementation!

Peyo
#4
2023-11-09 09:55:25
I'm glad that you are eager to help but I would prefer to clean it up a lot more before letting anyone else at it (kind of a catch of 22 I know, it's messy code but I know where everything is) but just for info: php 7.4, mysql 10.4.27

Aluminimalism
#5
2023-11-09 10:40:11
That's fair!

GO UP
 2022-2025 Peyocay Inc. Complain here Privacy Policy