319 posts
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Referred between 100 and 199 users
  • Bought between 50 and 99 items
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Exclusive Author
  • Portugal
vtimbuc says

Hi guys,

I’m working on a website that was build with requireJS, I’ve never worked with this framework and I need to add some inline jQuery code on the file and I can’t get it to work.

<script src="static/site/js/lib/require.js" data-main="static/site/js/ash.js"></script>

The code is being loaded this way. Then I’ve tried to add my inline code like this but none worked.

<script>
require(['jquery'], function($) {
  ...
});

define(['jquery'], function($) {
  ...
});
</script>

Does any one know how can I do it?

Thanks

by
by
by
by
by
by