Questions tagged [resource-loading]

44 questions
21
votes
1 answer

Chrome Profiler: What happens during 'resource loading' phase of network request?

What chrome actually does when the status of resource loading?In the image, The network request all duration is 2.97s, and 53.67ms is network transfer, 2.92s is the resource loading. What browser actually does when this resource loading…
5
votes
1 answer

Alternatives to YepNope and LabJS

I am wanting to load javascript and css files via a resource loader. I was originally using LabJs but I found YepNope more elegant and easier to work with in my scenario. However I am finding it devastatingly slow, which is odd as apparently it is…
Grofit
  • 17,693
  • 24
  • 96
  • 176
3
votes
1 answer

Resource Loading: How to determine if it's a directory

Currently I use this solution to load resources: URL url = MyClass.class.getClassLoader().getResource("documents/"+path); if(url == null) throw new FileNotFoundException(); BufferedReader reader = new BufferedReader( new…
f4lco
  • 3,728
  • 5
  • 28
  • 53
2
votes
1 answer

Why can I load a class from a JAR but not a resource?

I'm using a JAR which contains only a ClassPath element to build the classpath for my Java app and I've encountered a weird behavior: I can load classes from the JARs mentioned in the ClassPath element but some (or all) resources are…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
2
votes
1 answer

Using Head.js from an external JS file to load resources

I have an HTML file which includes a JS file in the head tag.. In the my.js file I try to load another JS file to use in…
Dropout
  • 13,653
  • 10
  • 56
  • 109
2
votes
1 answer

Invoking methods of a class that instantiated this one

I'm developing a game in Java which uses the Lightweight Java Game Library (LWJGL) with OpenGL. I encountered the following problem. I want to create an ArrayList of all textures in an object in the main loop, and access these from objects…
1
vote
1 answer

LESS (dynamic style sheet language) and Resource Loaders

I am currently looking at changing from using css to LESS in my current project. A few things to mention before I get to the question are: 1) The project is purely clientside (Html/Js/Css) so there is no server side component for the website…
Grofit
  • 17,693
  • 24
  • 96
  • 176
1
vote
1 answer

Resource Loader with ready() function call and that also loads CSS?

Ideally I'm looking for a Javascript resource loader that will: (1) Allow me to make "ready" calls like head.js does, e.g. head.ready(function() { $("#my").jquery_plugin(); }); // load jQuery whenever you wish bottom of the…
Chris Haines
  • 6,445
  • 5
  • 49
  • 62
1
vote
0 answers

Spring Boot PathMatchingResourcePatternResolver not finding the expected Resources

When trying to fetch resources using the tried-and-true Resource[] esResources = ResourcePatternUtils.getResourcePatternResolver(resourceLoader) .getResources("classpath*:/es/" + storageFilename + ".json") (resourceLoader is the…
1
vote
1 answer

How to change Solr JVM arguments?

Where & how exactly do I change this setting in Solr 7.7.3?: set -Dsolr.allow.unsafe.resourceloading=true to allow unsafe loading
blah
  • 674
  • 3
  • 17
1
vote
1 answer

Use ResourceLoader in Quarkus

I'm just experimenting with Quarkus and I'm having a problem on the ResourceLoader. Specifically, when I try to use the ResourceLoader inject, the clean install by maven goes wrong @Autowired private ResourceLoader resourceLoader; this is the maven…
Giampiero Poggi
  • 389
  • 1
  • 4
  • 13
1
vote
1 answer

Why did this code stop working after I switched machines?

I have worked on a project in Java using Eclipse that requires loading some images and displaying them. At first, I loaded them this way: InputStream stream = MyClass.class.getClass().getResourceAsStream("/resources/ui/icons/" + name); Image img =…
Tyler Tian
  • 597
  • 1
  • 6
  • 22
1
vote
0 answers

How to detect whether pri resource is avilable in the Application

I have included PRI resource in UWP application and im loading with ResourceLoader as like below code ResourceLoader.GetForCurrentView("ResourceName"); How to detect whether i'm having the file in the application. While using the above code, app is…
VenkyDhana
  • 905
  • 5
  • 16
1
vote
1 answer

Resource is loaded in Eclipse but not in IntelliJ

I know, similar questions have been asked here, but none of them seemed to fit my exact problem. I have the following (partial) directory structure: src |__view |__TweetView.java |__TweetView.html In TweetView.java, I'm trying to…
Macklin
  • 167
  • 1
  • 11
1
vote
1 answer

What causes UnmanagedMemoryStream in WPF (Memory Leak)?

Profiling my .NET Application shows me that there is a big delta in UnmangedMemoryStreams. It seems they are created from some resource loading. Anyone has an idea what can cause this loading or how to debug this? Screenshots from Profiling:
1
2 3