# Lazy Loading of Modules

**URL:** <https://discourse.julialang.org/t/lazy-loading-of-modules/26788>\
**Category:** General Usage\
**Created:** [July 25, 2019, 11:21am UTC](https://discourse.julialang.org/t/lazy-loading-of-modules/26788 "2019-07-25T11:21:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cortner](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cortner/32/204_2.png) [@cortner](https://discourse.julialang.org/u/cortner)\
**Post date:** [July 25, 2019, 11:21am UTC](https://discourse.julialang.org/t/lazy-loading-of-modules/26788/1 "2019-07-25T11:21:45Z")

</div>

This question essentially revives [this older topic](https://discourse.julialang.org/t/correct-use-of-requires-jl/10493).

I dislike long loading times for modules that I use fairly interactively. Let’s say I have a `module A`, and a single (or very few) function `fB` in `A` depends on another `module B` which takes a long time to load. `Requires.jl` is one way to deal with that, but the user would have `import B` before being able to use `A.fB`. This is ok but not great. Is there a way to `import B` automatically on the first call of `fB`?
