Welcome, Guest
Username: Password: Remember me

TOPIC: css before js

css before js 3 years 3 months ago #62934

  • Diamens
  • Diamens's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 16
  • Karma: 0
inserted before the css and after the js to optimize the loading:
example:
$header.= ">\n\t<head>\n"
. $css_header
. "<link href=\"".$rooturl."/scripts/jquery/css/start/jquery-ui.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<link href=\"".$rooturl."/scripts/jquery/css/start/lime-progress.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery.js\"></script>\n"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery-ui.js\"></script>\n"
. $js_header;

also template.css before



replace spaces with tabs in php code to reduce script size.
The administrator has disabled public write access.
Time to create page: 0.126 seconds
Donation Image