www.webdeveloper.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2012
    Posts
    1

    Question Shorten javascript?

    Hello there!
    I have a little problem. There's this social networking site where I'd like to "pimp" my profile using javascripts (I don't want to do anything special, but it doesn't matter now)

    You can't actually use javascripts there, but there's a text box which lets you use them, but it's limited to 24 characters. I uploaded my .js to my own host, so now I should just load it somehow, which is hard due to the character limit.

    I google'd "shortest javascript" and things like that, but didn't find anything useful, so I thought I'd ask the pros, you.

  2. #2
    Join Date
    May 2012
    Location
    St. Helens, UK
    Posts
    74
    The usual method of including an external JavaScript file in a HTML document is:

    Code:
    <script type="text/javascript" src="http://path.to/my/javascript.js"></script>
    But you'd be hard pushed to do an include with only 24 characters. The code without any src value is well over 24 characters. What social network is this? Perhaps someone else has figured out a way of doing it? (Although it sounds like it's probably impossible to me...)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles