SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I was going through init.js and sp.js and found out that nearly all of the SharePoint OOB JS functions start with the following line: "ULSxSy:;"

For example:

function ctxInitItemState(ctxCur)
function STSPageUrlValidation(url)
    return PageUrlValidation(url);

I could not find any documentation regarding why this might be. Anybody have an idea?

share|improve this question
up vote 2 down vote accepted

A similar question was asked on StackOverflow earlier, here you'll find a short answer.

This answer provides the detailed information for your question.

This line


is inserted into functions to allow collect diagnostic information on the client which includes the ability to send a JavaScript callstack (including function name, and javascript file) back to the server.

In your case label ULSxSy correspond to function declaration

function ULSxSy(){
   var o=new Object;
   o.ULSTeamName="Microsoft SharePoint Foundation";
   return o;
share|improve this answer
Thanks a lot! :) – Vardhaman Deshpande Oct 5 '12 at 12:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.