Current time: 12-17-2017, 05:52 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need some "did you know..." tips
04-15-2011, 06:17 AM
Post: #1
Need some "did you know..." tips
Have any suggestions to share about WPO, tools, using WebPagetest, configuring Apache, etc?

I'm adding a tip box to the test progress page so people have something to read while they wait for their test complete and hopefully it can be educational. If you have anything you'd like to share (and don't mind me using) please post it here, otherwise you'll be subjected to my random musings :-)

Thanks,

-Pat
Visit this user's website Find all posts by this user
Quote this message in a reply
04-15-2011, 07:06 AM (This post was last modified: 04-15-2011 07:07 AM by stoyan.)
Post: #2
RE: Need some "did you know..." tips
CSS expressions are bad, but if you really must use one, you can make it self-rewriting:

.the-thing {
background-color: expression(this.runtimeStyle.backgoundColor = 'none', [your code here]);
}

More: http://www.phpied.com/a-rounded-corner/
More: http://www.smashingmagazine.com/2011/03/...-elements/
Find all posts by this user
Quote this message in a reply
04-16-2011, 12:36 AM
Post: #3
RE: Need some "did you know..." tips
Tips are live now (well, all "2" of them I have so far anyway Smile). You should start to see them on the testing page and you can see all of them by going here: http://www.webpagetest.org/tips

Keep them rolling in!

Thanks,

-Pat
Visit this user's website Find all posts by this user
Quote this message in a reply
06-25-2011, 11:34 AM
Post: #4
RE: Need some "did you know..." tips
- echo is faster than print.

- Wrap strings in single quotes (‘) instead of double quotes (“) for added speed. Why? because PHP searches for variables inside “…” but not in ‘…’

- RTFM!

ok, maybe that last one won't cut it, but far too often people don't optimize their code because they just don't READ THE... MANUAL!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)