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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...