Stylish



  • Found this on an internal website while trying to discover why the internal server had to be restarted so often, and even simple pages were megabytes in size. I had just restarted Apache on the development server, and this was the fifth page loaded.

     <head>
        <link href="/timeclock/static/time_clock.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_blank.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_admin.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_style.css" type="text/css" rel="stylesheet" />
        <link href="/timeclock/static/time_clock.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_blank.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_admin.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_style.css" type="text/css" rel="stylesheet" />
        <link href="/timeclock/static/time_clock.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_blank.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_admin.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_style.css" type="text/css" rel="stylesheet" />
        <link href="/timeclock/static/time_clock.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_blank.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_admin.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_style.css" type="text/css" rel="stylesheet" />
        <link href="/timeclock/static/time_clock.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_blank.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_admin.css" type="text/css" rel="stylesheet" />
        <link href="/static/stylesheets/pn_style.css" type="text/css" rel="stylesheet" />

        <title>...</head>
     



  • Just when I think the forums can't get any more WTF-ish, they come through for me!



  • of course, just in case they didn't load the first five times, let's copy and paste it one more time!



  • @KattMan said:

    of course, just in case they didn't load the first five times, let's copy and paste it one more time!

     I don't think you understand. If I had gone to another computer and loaded another page from the server, that page would have six stylesheet groups. Get the WTF now?
     



  • So somebody actually went out of their way to do this?

    For their own sake, I hope it was an attempt at sabotage by a disgruntled emp/temp... the pure irony of somebody achieving that simply through ineptitude is just overwhelming.



  • @raluth said:

    So somebody actually went out of their way to do this?

    For their own sake, I hope it was an attempt at sabotage by a disgruntled emp/temp... the pure irony of somebody achieving that simply through ineptitude is just overwhelming.

     Amazingly, it was unintentional. The in-house coded template system's method of adding stylesheets or javascript is to append them to a per-template array. This dates back to the first version, where templates were re-read from the file on every page load to ease development. But then it was put in production mode, the templates were re-used, and nobody cared enough to notice.
     


Log in to reply