All Apps and Add-ons

Building new web framework javascript with requirejs

gpburgett
Splunk Employee
Splunk Employee

I am making a view with the new web framework and I am trying to use require.js to break up the code and make it easier to maintain. The view is nice and crisp on modern browsers but unfortunately the view is meant to be viewed on an embedded browser that would not be considered "modern". So, I am looking for ways to improve the loading time and performance of the page and I see that it takes a while to just load all of the different pieces of javascript code.

Require.js provides a utility that lets you compile all of your javascript files into one compact file and from what I can tell Splunk's default search and management pages use javascript compiled this way. Is there a good way to do this with custom views in the new web framework?

0 Karma

ineeman
Splunk Employee
Splunk Employee

We don't have this functionality available out of the box at the moment, but it is definitely something we are pursuing and want to help developers be able to compile and minify their application code.

You should also add this as a request to our UserVoice.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...