Page 1 of 1

Dynamic CSS::Linked Sheets?

Posted: Thu May 13, 2004 9:05 am
by randomblink
I have seen Javascript done dynamically.

Where the user creates a filename.js.php file and it generates the javascript via PHP.

This has caused me to pause and ask some questions from those who might have done this already.
  1. Are there performance issues with dynamically created javascript like I mentioned above?
    1. For Instance::
    2. Could the Javascript get generated too late to load variables correctly?
    3. Could the Javascript not recognize the linked file due to it's dual extensions?
  2. Is there a better way to do javascript -via- PHP?
  3. Could you do CSS like this?
  4. Would there be performance issues with dynamically created CSS?
I am hoping to hear from those who have tried the above and either made it work...? Or you have come up with workable solutions? I would like to generate my js and css dynamically via php.

Any help, comments, ideas would be welcome.