Questions should contain all the code needed to reproduce the problem. Fiddle links, while useful as a back up and to show the code in context can be useless if the link goes dark or the fiddle site is down - which happens far too often.
If you're posting lots of code then you should be looking at reducing it down to the barest minimum. People don't want to have to wade through pages of code to find your problem - that's your job.
However, you state:
My script works but I know it could be improved so I wanted to ask SO users but I thought my code might be too long.
In that case you should ask your question on CodeReview