never tried to combine SSI’s with PHP, but I guess SSI’s could be stripped out that way. you could embed them in “noptimize”-tags maybe?
OK, cool – I’ll give that a whirl!
Currently I have:
<!--#if expr="$HTTP_COOKIE=/fontsloaded\=true/" -->
<html lang="en" class="fonts-loaded">
<!--#else -->
<html lang="en">
<!--#endif -->
If I just switch that out for:
<!–noptimize–>
<!--#if expr="$HTTP_COOKIE=/fontsloaded\=true/" -->
<html lang="en" class="fonts-loaded">
<!--#else -->
<html lang="en">
<!--#endif -->
<!–/noptimize–>
You reckon that’ll play ball?
-
This reply was modified 5 years, 6 months ago by Will Stocks.
yep, should work, but do make sure the noptimize tags have are <!--noptimize-->
instead of <!–noptimize–>
(same issue with closing tags) 🙂
Brilliant!!
Ah, will do! Might want to update the FAQs, as I copied and pasted from there 😉 That or there’s some weird copy and paste formatting going on!
argh .. afraid that’s a problem with the readme-parsing at wordpress.org. the original readme.txt does contain two dashes; http://plugins.svn.wordpress.org/autoptimize/trunk/readme.txt 🙂
Have you tried using the ol’ —
or –
? Might parse correctly then? 😊
great idea! made it & #045;
(without the space obviously) though, seems to work 🙂
Wahoo!
Ok, on that note, I’ll get my site updated with the right tag! 😊
Thanks again Frank!