At first glance it looks like a design flaw, but I'm guessing there is a reason.
Why are three (or more) separate queries made for the css:
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=32" />
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=38" />
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=17" />
instead of one:
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=32,38,17" />
Can anyone explain?
Ta.
(2018-10-07, 12:02 PM)woostar Wrote: [ -> ]At first glance it looks like a design flaw, but I'm guessing there is a reason.
Why are three (or more) separate queries made for the css:
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=32" />
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=38" />
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=17" />
instead of one:
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=32,38,17" />
Can anyone explain?
Ta.
The "css.php" is only used as a fallback when a stylesheet has failed to be written to the "cache/themes" folder due to a misconfiguration (eg: incorrect CHMOD on the folder). Usually, the stylesheets are loaded as actual files rather than from the database for every request. I guess we could improve that fallback, but it is only meant to be used as a fallback.
(2018-10-07, 12:27 PM)Euan T Wrote: [ -> ] (2018-10-07, 12:02 PM)woostar Wrote: [ -> ]At first glance it looks like a design flaw, but I'm guessing there is a reason.
Why are three (or more) separate queries made for the css:
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=32" />
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=38" />
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=17" />
instead of one:
<link type="text/css" rel="stylesheet" href="https://domain.com/css.php?stylesheet=32,38,17" />
Can anyone explain?
Ta.
The "css.php" is only used as a fallback when a stylesheet has failed to be written to the "cache/themes" folder due to a misconfiguration (eg: incorrect CHMOD on the folder). Usually, the stylesheets are loaded as actual files rather than from the database for every request. I guess we could improve that fallback, but it is only meant to be used as a fallback.
ahhhh. that makes sense. I'm running multiple forums from one set of MyBB files, so call it from the database instead.
Thank you