Title: Does this theme load css with js?
Last modified: September 14, 2022

---

# Does this theme load css with js?

 *  [biels](https://wordpress.org/support/users/biels/)
 * (@biels)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/does-this-theme-load-css-with-js/)
 * I’m using Swup, which is a js plugin that makes page transitions from page to
   page. If you have js one some pages, you have to tell the plugin that it has 
   to run those scripts after a page transition happened. When I use Generatepress(
   great theme btw) and go from a full width to a page with a sidebar it brakes 
   the layout, especially with flex items. It fixes itself after a refresh. So here’s
   my question; does Generatepress use javascript to build the pages?

Viewing 1 replies (of 1 total)

 *  [David](https://wordpress.org/support/users/diggeddy/)
 * (@diggeddy)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/does-this-theme-load-css-with-js/#post-16012416)
 * Hi there,
 * > does Generatepress use javascript to build the pages?
 * No.
 * GeneratePress like most themes adds helper classes to the `<body>` tag, for certain
   template parts or layouts eg. `right-sidebar` or `full-width-content` – and those
   are used to load the relevant CSS.
 * It sounds like swup is pjax loading the main content whilst leaving the `body`
   intact.

Viewing 1 replies (of 1 total)

The topic ‘Does this theme load css with js?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [David](https://wordpress.org/support/users/diggeddy/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/does-this-theme-load-css-with-js/#post-16012416)
 * Status: not resolved