0

What will be the benefits of embedding the tags into the webpage? In my application, we are embedding the Jquery resource like this:-

<script id="jquery_js" type="text/javascript" src="/Sub/WebResource.axd?d=IYhTi0o5iq80gCyMHTaiGmRN8YGagUI681aLuVI5GabftZFqPjvBvf-OBOcIIU6B0vOU-f_YI6Y2aagBQ2&t=634239484939658631"></script>

I want to know the benefits of this approach in the real time application. Please share your views.

1 Answer 1

1

The WebResource handler lets you serve static resources from an assembly. One benefit is that you can usually ship your application in a smaller package (sometimes only 1 dll and 1 web.config). Another benefit is that your customer cannot upgrade jQuery to the newest version for your webapp, because it always uses the version that is embedded in the assembly. Of course this also has several drawbacks, such as needing to compile and ship a new version of the dll just to make minor changes that could otherwise have been done by a simple edit of file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.