• oiver55

    (@oiver55)


    I am developing a site and I have come to a place where certain js file should only be loaded for certain pages. For example, I want some js files to only run in the dashboard. Currently all my js files get complied into one. Is there a writeup that shows how to code split while using the wordpress/scripts library? Or maybe do you know how to codesplit js files through wordpress/scripts? Thanks for your time.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator threadi

    (@threadi)

    How do you combine them? What does your script look like?

    Thread Starter oiver55

    (@oiver55)

    Hey there I was able to figure it out. Thanks for responding!

    Moderator threadi

    (@threadi)

    The solution would certainly be interesting for others who are also looking for it. You are also welcome to set the topic to solved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Code Splitting with wordpress/scripts’ is closed to new replies.