This question is locked. New answers and comments are not allowed.
I've read through the document on web assets, and I'm finding this to be... confusing :)
I follow that a Master page contains the registration of scripts used throughout the site.
What I don't understand are how to setup page specific scripts. It never shows an actual example in the documentation so it left me confused.
I see another thread on xml... but I'm not going that route - I'm trying to get away from xml :)
Let me understand this:
I have a page that has a jQuery tablesorter script that I normally call in the head of the page and it's specific to that page:
ie.
| $(document).ready(function() { |
| $("#SummaryTable").tablesorter({ widthFixed: true }); |
| }); |
So I need a page specific setup for this ?
Do I have multiple ScriptRegistrar - one for the site, and one for each page ?
Some samples in the documentation would be helpful - this is going to be a common theme for building pages. I have page specific scripts through my code base.
More explanation is needed please!
Thanks